Exam-style question
Try this first
Which identifier is the most meaningful name for storing the number of completed tasks?.
- A.x
- B.value1
- C.completedTaskCount
- D.data
Answer and explanation
Concise answer
completedTaskCount
Why this is correct
completedTaskCount communicates the purpose of the stored value. Meaningful identifiers make programs easier to read, understand, test and maintain.
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.
