File Handling (Cambridge (CIE) IGCSE Computer Science)

Exam Questions

12 mins4 questions
12 marks

State the two actions from the list below that a program needs to take to store data in a file.

  • activate

  • calculate

  • close

  • open

  • output

  • print

  • read

  • search

  • sort

  • write

Did this page help you?

25 marks

State five file-handling operations from the list below:

  • calculate

  • close

  • count

  • create

  • input

  • open

  • output

  • print

  • read

  • sort

  • search

  • test

  • total

  • write

Did this page help you?

13 marks

Explain why a program might need to store data in a file

Did this page help you?

22 marks

A program halted unexpectedly with the error message ‘File not found’ whilst trying to read data from a file.

Outline the actions that the program needs to take to prevent this error occurring.

Did this page help you?