Cambridge AS Level Computer Science 9618 · 5.2 Language Translators

Q21 · 9618/12/M/J/24 Q8

Worked solution from the System Software Paper 1 Theory Fundamentals booklet, Part 2 of 2.

Q219618/12/M/J/24original Q8Structured · 10 marks
Question 8 from 9618/12/M/J/24

Worked solution

(a)

Give two points:

The compiler creates an executable file [1]

... so the code can be tested many times without recompiling, which makes repeated testing quicker [1]

(b)

Complete the table with one different feature for each purpose (one example answer each):

PurposeIDE featureDescription
for codingContext-sensitive promptsGives suggestions for code as the user types, so they do not have to remember it
for presentationExpand/collapse code blocksThe user can hide code they are not working on
for debuggingSingle steppingRuns the code one line at a time and shows the effect of each line

Coding feature named correctly [1]

Coding description matches [1]

Presentation feature named correctly [1]

Presentation description matches [1]

Debugging feature named correctly [1]

Debugging description matches [1]

Other accepted: auto-correct (coding); pretty-printing (presentation); breakpoints (debugging).

(c)

Give two benefits:

It saves programming and testing time, as code is not written from scratch [1]

The code is already tested, so it is more robust and likely to work [1]

Other accepted: no need to maintain the library; it can do complex tasks the programmer cannot; code is easier to read.

KEY IDEAA compiler makes a reusable executable; IDE features help coding, presentation and debugging; libraries save time and are tested.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/12/M/J/24 question 8
VIDEO
▶ Starts at Q8 (1:15:52)

Starts at Q8 (1:15:52) · by Pseudocode Pro. 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.