Skip to main content
A-LevelComputer ScienceData types and structures9618/31 · Oct/Nov 2022 · Q53 Marks

Write the infix expression in Reverse Polish Notation (RPN). a * b + b - d + 15

  1. (a)Write the infix expression in Reverse Polish Notation (RPN). a * b + b - d + 15[1]
  2. (b)(i)Write the RPN expression in infix form. a b - c d + * a /[1]
  3. (b)(ii)Evaluate your infix expression from part (b)(i) when a = 5, b = 10, c = 27 and d = 12.[1]

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2022). The mark or mark type is shown in brackets.

  1. [1] a b * b d - + 15 +
  2. [1] (a - b) * (c + d) / a
  3. [1] -39

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Data types and structures, A-Level Computer Science (syllabus 9618). Structured question, 3 marks.
Source
A-Level Computer Science, Oct/Nov 2022 Paper 3 Variant 1, question 5.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep