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
Model answer
What a good answer should say
- completedTaskCount
Explanation
Why this works
completedTaskCount communicates the purpose of the stored value. Meaningful identifiers make programs easier to read, understand, test and maintain.
Common mistake
No common mistake is linked to this question yet.
