Skip to content

Course home

Programming fundamentals

Programming fundamentals

EasyMediumHard
123456789101112131415161718192021222324
Question 18

An automated marine drone is used to collect environmental telemetry. The drone's onboard software has a procedure, LogTelemetry(), that appends sensor readings to an external log file.

The procedure LogTelemetry():

  • takes a string containing the telemetry sensor readings as a parameter
  • takes the filename of the log file as a parameter
  • opens the file in append mode, writes the telemetry readings to it, and closes the file.

Write the procedure LogTelemetry() using either OCR Exam Reference Language, AQA Pseudo-code, 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