logo

Question detail

Which identifier is the most meaningful name for storing the number of completed tasks?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

Which identifier is the most meaningful name for storing the number of completed tasks?.

  1. A.x
  2. B.value1
  3. C.completedTaskCount
  4. 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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.