logo

AQA A-Level Computer Science practice

What is the value of total after this pseudocode is executed? total <- 7 value <- 3 total <- total + value

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

At a glance

MCQ

Type

practice

Style

Topic

Abstraction and automation

Exam-style question

Try this first

What is the value of total after this pseudocode is executed? total <- 7 value <- 3 total <- total + value.

  1. A.3
  2. B.4
  3. C.7
  4. D.10

Answer and explanation

Concise answer

10

Why this is correct

The final assignment adds the current value of value, 3, to total, which is 7. Therefore, total becomes 10.

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