Cambridge O Level Computer Science 2210 · 4.1 Types of software and interrupts

Q12 · 2210/12/O/N/25 Q5

Worked solution from the Software Paper 1 Computer Systems booklet, Part 1 of 2.

Q122210/12/O/N/25original Q5Structured · 10 marks
Question 5 from 2210/12/O/N/25

Worked solution

(a)

Write: Hardware interrupt [1]

(b)

Explain how the interrupt is serviced:

The CPU checks the priority of the interrupt [1]

If the priority is higher, it halts the current process and stores its details on a stack [1]

It checks the source of the interrupt and calls the interrupt service routine (interrupt handler) [1]

If the priority is not higher, the CPU continues with the current process [1]

Other accepted point: it fetches the interrupt.

(c)(i)

Data is sent one bit at a time [1]

It travels down a single wire [1]

(c)(ii)

Write two benefits:

It is a universal connection [1]

The mouse can be powered by the computer [1]

Other accepted answers: backward compatible, less chance of skewing, the cable cannot be inserted the wrong way, the device is detected automatically and the driver installed.

(c)(iii)

Write one drawback:

It is slower than a parallel connection [1]

Another accepted answer: the wire may get in the way and limit movement of the mouse.

KEY IDEAA hardware interrupt is placed in a queue, its priority is checked, and the ISR runs.
TOTAL 10 marks

Official mark scheme

Mark scheme for 2210/12/O/N/25 question 5
VIDEO
▶ Whole paper

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