logo

Pearson Edexcel GCSE (9-1) Computer Science practice

Which of the following best describes the purpose of a variable in an algorithm?

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

At a glance

MCQ

Type

practice

Style

Topic

Algorithms

Exam-style question

Try this first

Which of the following best describes the purpose of a variable in an algorithm?.

  1. A.To store a fixed value that cannot change.
  2. B.To define the steps for solving a problem.
  3. C.To temporarily store and manipulate data during program execution.
  4. D.To group different data types under a single name.

Answer and explanation

Concise answer

To temporarily store and manipulate data during program execution.

Why this is correct

A variable's primary function is to hold values that can change as an algorithm executes. Options A describes a constant, Option B describes an algorithm, and Option D describes a record.

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

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions