A scoreboard program is used during a wheelchair basketball tournament. The referee enters points through a keypad. The main program sends the new score to ...

Assessment: Computer Science 9210 | Paper 1 Mock 01 | Programming (on-screen) Subject: Computer Science - 9210

Question 1 Report

A scoreboard program is used during a wheelchair basketball tournament. The referee enters points through a keypad. The main program sends the new score to a large display and saves a copy to a match log file after every turn. If electricity fails, staff can read the file and restore the latest score.

(a) State the input device used by the referee. [1]
(b) Explain why writing to the log file after every turn is better than saving only at the end. [2]



Fig. 1 shows the control panel of an automated greenhouse. A grower uses the displayed controls to enter a target temperature and save it in a configuration file. On restart, the skeleton program reads the saved value and sends it to the heater controller. The grower must be warned if the entered value is outside the safe range of 10 to 35 degrees C.

(a) When the Save command is selected, explain one check the program should make on the entered temperature. [2]
(b) State one output device that could give the warning. [1]
(c) Explain why the configuration file should be closed after writing. [1]

Answer Details

Scoreboard

  1. The referee enters points using a keypad. [1]
  2. Saving after every turn retains a recent copy of the score. Therefore less data is lost if there is a power or program failure before the match ends. [2]

Greenhouse controller

  1. The program should check that the entered temperature is numeric and that it is in the inclusive safe range of 10 to 35 degrees C. These checks reject text and unsafe values before the configuration is saved. [2]
  2. A suitable warning output device is a screen. A speaker or warning light is also acceptable. [1]
  3. The configuration file should be closed so buffered data is written to the file and/or the file is released for other use. [1]

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning