Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123456789101112131415161718192021222324
Question 9

A program written in a high-level language is used to manage visitors at a museum. This program has a procedure, RecordCheckIn(), that stores a visitor's entry details to an external text file.

The procedure RecordCheckIn():

  • takes the string containing the visitor details as a parameter
  • takes the filename of the text file as a parameter
  • stores the string of visitor details to the specified text file.

Write the procedure RecordCheckIn() using either OCR Exam Reference Language or a high-level programming language that you have studied.

[4]
Markscheme

Programming fundamentals Questions

  1. GCSE
  2. /Computer Science
  3. /Programming fundamentals

95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank