Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 2 of 2.
Write the steps in the order the interpreter does them.
The interpreter translates the source code one line at a time [1]
If the line has no syntax error, it is executed straight away [1]
The translated code is not stored as an executable file [1]
If an error is found, the program stops and an error message is shown [1]
Other point that scores: each line is translated again every time it runs, even inside a loop (only 4 marks are available).
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. 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.