Cambridge A2 Level Computer Science 9618 · 16.1 Purposes of an Operating System (OS)

Q1 · 9618/31/M/J/21 Q3

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

Q19618/31/M/J/21original Q3Structured · 9 marks
Question 3 from 9618/31/M/J/21

Worked solution

(a)

Draw one line from each term to its description:

Multi-tasking → managing the execution of many programs that appear to run at the same time [1]

Paging → reading/writing same-size blocks of data from/to secondary storage when required [1]

Interrupt handling → transferring control to another routine when a service is required [1]

Scheduling → managing the processes running on the CPU [1]

Virtual memory → using secondary storage to simulate additional main memory [1]

The description 'locating non-contiguous blocks of data and relocating them' is not used.

(b)

An interpreter reads the source code and runs it without making a translated copy. Write any four of these:

The interpreter takes the source code one statement at a time [1]

It checks each statement for errors [1]

If no error is found, the statement is executed [1]

If an error is found, it is reported and the interpreter stops [1]

Also accepted: code inside a loop is interpreted again on every repeat

Also accepted: the whole program is interpreted again every time it is run

Only four of these points can score (4 marks).

KEY IDEAAn interpreter translates and runs one statement at a time, so it makes no complete translated program and repeats the work each time.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/31/M/J/21 question 3
VIDEO
▶ 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.