Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 2 of 2.
Work in order of precedence: a * b first, then + b, then – d, then + 15.
Write: a b * b + d - 15 + [1]
Read the RPN and join the last two items each time: a b – gives (a – b); c d + gives (c + d); * joins them; then divide by a.
Write: (a - b) * (c + d) / a [1]
Put in the values: (5 – 10) * (27 + 12) / 5 = (–5) * 39 / 5 = –195 / 5
Write: –39 [1]
▶ Whole paper
Video solution of the whole paper · by MAK CS. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.