CommerceVariables And Constants In C Sharp MCQs
Practice Variables And Constants In C Sharp MCQs for competitive exams.
Variables And Constants In C Sharp MCQs
Practice questions from this topic.
What is the default value of an integer variable in C# if not initialized explicitly?
- A. null
- B. -1
- C. 0
- D. 1
Correct Answer: C
Which keyword is used to declare a constant in C#?
- A. static
- B. const
- C. volatile
- D. None of the above
Correct Answer: B