Worked solution from the Further Programming Paper 3 Advanced Theory booklet, Part 2 of 2.
Say what exception handling does, then give an example:
Write: It traps (some) runtime errors [1]
Write: It prevents the program halting (crashing) unexpectedly [1]
Write: It lets the program give a meaningful error message about the error [1]
Write an example exception: divide by zero (or end of file, or file not found) [1]
▶ Whole paper
Video solution of the whole paper · by qiphyedu. 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.