logo

AQA A-Level Computer Science practice

What value is produced by evaluating the RPN expression 2 3 + 4 *?

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

At a glance

MCQ

Type

practice

Style

Topic

Reverse Polish

Exam-style question

Try this first

What value is produced by evaluating the RPN expression 2 3 + 4 *?.

  1. A.9
  2. B.14
  3. C.20
  4. D.24

Answer and explanation

Concise answer

20

Why this is correct

The 2 and 3 are added to give 5. The result is then multiplied by 4, giving 20.

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