Worked solution from the Further Programming Paper 3 Advanced Theory booklet, Part 2 of 2.
Write that an exception is an unplanned or unexpected event that happens while a program is running [1]
... caused by an error in the programming or logic that was not found when the program was built [1]
The effect can be that the program halts unexpectedly [1]
Example: division by zero [1]
Reason: the processor cannot work out the answer, so the program crashes [1]
Other correct examples and reasons also score.
▶ Topic lesson
A lesson on this topic · by James Gan. 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.