41. What is the correct way to declare and initialize a string variable in C#? A. String str = "Hello"; B. var str = "Hello"; C. string str = "Hello"; D. str = string("Hello"); 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
42. What is the purpose of the 'dynamic' keyword in C#? A. To make a variable constant B. To specify a data type that can change during runtime C. To make a variable accessible outside its class D. To specify a data type to be determined at runtime 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
43. In C#, what is the default value of a boolean variable if not initialized explicitly? A. FALSE B. TRUE C. 0 D. null 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
44. What is the correct way to declare a variable without assigning a value in C#? A. num = int; B. num int; C. var num; D. int num; 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
45. Which of the following is a valid constant name in C#? A. my-constant B. 123constant C. MAX_VALUE D. _CONSTANT 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