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
Answer and explanation
Concise answer
const
Why this is correct
In this C# declaration, the keyword "const" indicates that MAX_TRIES is a constant. The name identifies the constant, and 3 is its value.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
