What happens as a result of an interrupt
What the ISR does depends on the event: it reads a key press, updates the pointer, shows an error or stops a faulty program. Then the CPU resumes the task it was running.
Understanding What happens as a result of an interrupt in IGCSE Computer Science Paper 1
What it does: A divide by zero is a software interrupt. The ISR deals with it by showing an error message or stopping the program that caused it. The result of every interrupt ends the same way: the saved state is restored and the interrupted task carries on. The keyboard interrupt makes the ISR read the key press and pass the character to the program. Then the CPU carries on. The mouse move interrupt is handled by an ISR that updates the pointer position. Nothing is deleted. Handling a key press does not stop other programs. The CPU returns to the task it was running.
Common mistakes: A key press is read from the keyboard, not the monitor. The monitor is an output device, so it cannot supply the character. The line should be ISR: READ key FROM keyboard. Moving the mouse does not need the computer to shut down. The ISR just updates the pointer position, so the line should be ISR: UPDATE pointer position.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 409–418) and word search (Modules 390–418).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
interrupt outcomeFill in the Blanks
Spot the Error
Student with a class code? Join your class →