logo

AQA A-Level Computer Science practice

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

Try the question first, then check the answer and practise the same topic again.

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

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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions