Fig. 1 shows a navigation display used by a sailing club. A crew member enters a boat identifier, and the program reads a file of safety checks before displ...

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

Question 1 Report

Fig. 1 shows a navigation display used by a sailing club. A crew member enters a boat identifier, and the program reads a file of safety checks before displaying the boat status. The displayed message must be easy to see in rain. If no file record exists, the program sends a warning to the instructor instead of showing a safe status.

(a) State the input device used to enter the boat identifier. [1]
(b) Explain why the program should test whether a matching record was found. [2]
(c) When no record is found, state one suitable output for the instructor. [1]



Table 1 shows records from a bakery ordering file. A program reads the file at 06:00, totals the number of each product required, then sends the totals to a kitchen display. New online orders are added while the program is running.

OrderIDProductQuantity
801Rye loaf3
802Seeded roll12
803Rye loaf5

(a) When these three records are processed, calculate the total number of rye loaves displayed. [1]
(b) Explain why quantity should be validated as a positive integer. [2]
(c) State the file operation needed when a new online order is received. [1]
(d) Explain why the kitchen display is an output device. [1]

Answer Details

Sailing-club program

  1. The boat identifier can be entered with a keypad or keyboard. [1]
  2. The program must test whether a matching record was found because a missing record must not be treated as evidence that a boat is safe. The test selects the correct warning path instead. [2]
  3. A suitable instructor output is a warning message on screen. An alarm or flashing light is also acceptable. [1]

Bakery-order file

  1. Rye-loaf quantities are 3 and 5:
    \[3 + 5 = 8\]
    The displayed total is 8 rye loaves. [1]
  2. Quantity should be a positive integer because zero and negative values are not valid orders, and fractions of a loaf/order item are not permitted. [2]
  3. When a new online order arrives, use append/write a new record. [1]
  4. The kitchen display is an output device because it presents processed information from the program to a user. [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