Which of the following is a valid way to represent the number 1000 in C#?
A. 1 000
B. 10_00
C. 1000
D. None of the above
Answer: Option C
A. 1 000
B. 10_00
C. 1000
D. None of the above
Answer: Option C
What is the correct syntax to declare a variable in C#?
A. num = int;
B. var num;
C. num int;
D. int num;
What is the purpose of the 'var' keyword in C#?
A. Declares a constant
B. Converts a variable to string
C. Implicitly declares a variable
D. Defines a method
Join The Discussion