Cambridge A2 Level Computer Science 9618 · 20.2 File Processing and Exception Handling

Q33 · 9618/32/O/N/25 Q10

Worked solution from the Further Programming Paper 3 Advanced Theory booklet, Part 2 of 2.

Q339618/32/O/N/25original Q10Structured · 4 marks
Question 10 from 9618/32/O/N/25

Worked solution

(a)

Write that you can use an exception handling routine to respond to unexpected events while the program runs [1]

Use try ... except (catch), or give an error message instead of stopping [1]

(b)

Any two causes:

Coding (programming) errors [1]

User errors, or hardware failure such as losing connection to a printer [1]

KEY IDEAAn exception handling routine such as try ... except stops an unexpected error from ending the program.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/32/O/N/25 question 10
VIDEO
▶ Whole paper

Video solution of the whole paper · by Zafar Ali Khan (ZAK). 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.