What is the purpose of declaring constants in C#?
A. To store and manipulate data
B. To declare variables
C. To handle exceptions
D. To define values that do not change
Answer: Option D
A. To store and manipulate data
B. To declare variables
C. To handle exceptions
D. To define values that do not change
Answer: Option D
What is the correct syntax to declare a variable in C#?
A. variable int num;
B. num = int;
C. int = num;
D. int num;
Which of the following is NOT a valid variable name in C#?
A. 1variable
B. _variable
C. variable1
D. Variable
Join The Discussion