Skip to content

Cambridge AS & A Level Computer Science

20.2File processing and exception handling

File processing and exception handling in Cambridge AS & A Level Computer Science: what the syllabus expects you to know, the learning objectives and how to practise.
Subtopic24 practice questions1 lesson

Learning objectives

What the syllabus expects you to be able to do.

  1. 20.2.1Write code to open, read, write, append and close files and to read and write records on serial, sequential and random files.
  2. 20.2.2Explain exceptions and when exception handling is appropriate, and write code that uses it.

Lessons

  • File processing and exception handling

    60 min

    Full access

Join to read every lesson, or see what Full access includes.

Sample question

A sample question on this topic. Answer it, check it, then read the worked answer.

File processing and exception handling: sample question

1 mark

Which file mode adds new data to the end of a text file and keeps the existing data?

Choose one answer

Turn File processing and exception handling into a strength.

Practise with instant marking, see your mastery grow and get a study plan built around your exam date.