Cambridge AS Level Computer Science 9618 · 5.1 Operating Systems

Q2 · 9618/12/O/N/21 Q7

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

Q29618/12/O/N/21original Q7Structured · 11 marks
Question 7 from 9618/12/O/N/21

Worked solution

(a)

Hardware interrupts come from a device or the power. Software interrupts come from a program error or fault in the running software. Tick like this:

EventHardware interruptSoftware interrupt
Buffer full✓
Printer is out of paper✓
User has pressed a key on the keyboard✓
Division by zero✓
Power failure✓
Stack overflow✓

Buffer full and Printer is out of paper both correct [1]

User has pressed a key and Division by zero both correct [1]

Power failure and Stack overflow both correct [1]

(b)

Describe four file management tasks. Any four of these score:

Divides storage space into file allocation units [1]

Allocates space to particular files [1]

Creates and maintains directory (folder) structures [1]

Sets the logical method of file storage, for example FAT or NTFS [1]

Other accepted answers: provides file naming rules; controls access with access rights or passwords; sets what can be done to a file (open, close, delete, copy, move).

(c)

Name a utility (1 mark) and say how it helps (1 mark). Two utilities:

Defragmentation [1]

Files become contiguous, so there is less head movement and files open faster [1]

Virus checker [1]

It removes software that uses up or replicates in memory, so more RAM is free for programs [1]

Other accepted pairs: disk repair (marks bad sectors so they are not used, so access is faster) and disk clean-up (frees storage by deleting unwanted or temporary files).

KEY IDEAHardware interrupts come from devices and power; software interrupts come from errors in running programs.
TOTAL 11 marks

Official mark scheme

Mark scheme for 9618/12/O/N/21 question 7
VIDEO
▶ Starts at Q7 (31:28)

Starts at Q7 (31:28) · by HyperDavester. 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.