11. What is the correct way to declare a floating-point variable in C#? A. var num; B. Num float; C. double num; D. float 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
12. Which of the following is a valid constant name in C#? A. MAX_VALUE B. my-constant C. 123constant D. _CONSTANT 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
13. What is the value of a variable after it is declared but not initialized in C#? A. Depends on the data type B. 0 C. null D. undefined 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
14. In C#, how do you declare a variable without initializing it? 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
15. What is the data type of the following variable declaration: var x = 10; A. dynamic B. var C. int D. object 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
16. Which of the following is a valid variable declaration in C#? A. num = int; B. int num; C. int = num; 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
17. What is the correct way to declare a constant string in C#? A. const MESSAGE = "Hello"; B. MESSAGE const = "Hello"; C. const string MESSAGE = "Hello"; D. string MESSAGE = "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
18. What is the data type of the variable in C#? A. int B. string C. double D. char 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
19. Which keyword is used to define a constant in C#? A. static B. readonly C. final D. const 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
20. What does the 'readonly' keyword do in C#? A. Makes a variable accessible outside its class B. Makes a variable constant C. Makes a variable read-only D. Makes a variable static 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