Cambridge AS Level Computer Science 9618 · 5.2 Language Translators

Q14 · 9618/11/M/J/22 Q5

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

Q149618/11/M/J/22original Q5Structured · 9 marks
Question 5 from 9618/11/M/J/22

Worked solution

(a)

Draw one line from each feature to its description:

Context-sensitive prompt → Displays predictions of the code being entered

Dynamic syntax check → Underlines or highlights statements that do not meet the rules of the language

Breakpoint → Stops the code executing at a set line

Single stepping → Executes one line of the program and then stops

Report window → Outputs the contents of variables and data structures

Marks go up by line: 1 correct line scores 1, 2 lines score 2, 3 or 4 lines score 3, all 5 lines score 4.

Marks for correct lines [4]

(b)

Write two licences that let others edit, improve and share the code:

Open Source Initiative licence [1]

Free Software Foundation (free software) licence [1]

(c)

Explain the benefits. Any three of these score:

It saves time, because code does not have to be written or tested from scratch [1]

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

If a library routine is improved, the program gets the improvement automatically [1]

It can do complex tasks the programmer may not be able to write (also scores if the marks above are not already full)

Only three marks are available.

KEY IDEALibraries save time and give tested code; IDE features each have one clear job.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/11/M/J/22 question 5
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.