Worked solution from the Software Paper 1 Computer Systems booklet, Part 2 of 2.
Say what each translator is used for, and when. Write any four of these points:
Also accepted: both translate the high-level language into low-level language (machine code)
The interpreter is used while writing the program [1]
The interpreter runs the code line by line, so it helps to find and fix errors (debug) [1]
The compiler is used when the program is finished [1]
The compiler makes a separate executable file, so the compiler is not needed again to run it [1]
Also accepted: if it compiles first time, there are no syntax errors
Write any three reasons, for example:
It is easier to understand and write (you do not need to know assembly code) [1]
It is easier to debug [1]
It is easier to maintain [1]
Also accepted: it is portable (it can run on different computers)
Also accepted: you do not need to manage memory locations or registers
Also accepted: you can use an IDE, and there is a bigger choice of languages
▶ Topic lesson
A lesson on this topic · by Mr Bulmer's Learning Zone. 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.