9618/31/M/J/25 question 6: worked solution (May/June 2025, paper 31)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 16.2 Translation Software Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 2 of 2. Q32 9618/31/M/J/25 original Q6 Structured · 4 marks Worked solution 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). KEY IDEA An interpreter translates and runs one line at a time and keeps no executable, so it stops at the first error. TOTAL 4 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.