Cambridge AS Level Computer Science 9618 · 5.1 Operating Systems

Q4 · 9618/12/O/N/22 Q1

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

Q49618/12/O/N/22original Q1Structured · 9 marks
Question 1 from 9618/12/O/N/22

Worked solution

(a)

Draw one line from each utility to its purpose:

Virus checker → to scan for malicious program code [1]

Disk formatter → to initialise a disk [1]

Backup → to create copies of files in case the original is lost [1]

Disk repair → to check for and fix inconsistencies on a disk [1]

Defragmentation → to reorganise files so they are contiguous [1]

"To decrease the file size" (compression) is not used.

(b)(i)

State two drawbacks of a compiler. Any two of these score:

Large amounts of source code take time to compile (slower to produce object code) [1]

The code cannot be changed without recompiling [1]

The program will not run if there are any errors, and errors cannot be corrected in real time (also scores if the marks above are not already full)

Other accepted answers: one error can cause other false errors; hard to test sections or unfinished code.

(b)(ii)

Explain why a program might be partly compiled and partly interpreted. Any two of these:

Partly compiled code can be used on different platforms, because it is interpreted when it runs [1]

Machine code is made at run time, so the code is optimised for the CPU [1]

KEY IDEAMatch each utility to its single job; compilers are slow to retest, while partial compilation gives portability.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/12/O/N/22 question 1
VIDEO
▶ Whole paper

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