51. What does the 'break' keyword do in a switch statement in C#? A. Skips to the next case B. Continues to the next iteration C. Exits the switch block D. Throws an exception Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
52. In C#, what is the purpose of the 'protected' access modifier? A. Allows access from any class within the assembly B. Restricts access to the current class and its derived classes C. Allows access from any class D. None of the above Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
53. Which of the following is a correct way to declare a constant in C#? A. const int MAX_VALUE = 100; B. constant int MAX_VALUE = 100; C. int const MAX_VALUE = 100; D. int MAX_VALUE = 100; Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
54. What is the output of the following code: Console.WriteLine(true && false); A. False && True B. TRUE C. True && False D. FALSE Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
55. In C#, what is the role of the 'finally' block in a try-catch-finally statement? A. Catches any exceptions B. Handles exceptions C. Executes code regardless of whether an exception occurs or not D. Terminates the program Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
56. What is the correct way to declare a multi-line comment in C#? A. # This is a multi-line comment B. /* This is a multi-line comment */ C. -- This is a multi-line comment D. None of the above Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
57. Which of the following is NOT a valid access specifier in C#? A. private protected B. protected internal C. public protected D. private internal Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
58. What is the default value of a bool in C# if not explicitly initialized? A. 0 B. Null C. FALSE D. TRUE Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
59. In C#, what is the result of the expression 5 + "3"? A. 8 B. 15 C. Compilation error D. 53 Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
60. What is the purpose of the 'base' keyword in a derived class constructor in C#? A. Calls the base class constructor B. Initializes the derived class C. Sets the base class fields D. Terminates the program Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board