Exam-style question
Try this first
In the C# declaration "const int MAX_TRIES = 3;", which part identifies the value as a constant?.
- A.const
- B.int
- C.MAX_TRIES
- D.3
Model answer
What a good answer should say
- const
Explanation
Why this works
In this C# declaration, the keyword "const" indicates that MAX_TRIES is a constant. The name identifies the constant, and 3 is its value.
Common mistake
No common mistake is linked to this question yet.
