The archive program at a local newspaper copies completed article files to a backup drive each evening. An editor enters a date, and the program displays th...

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

Question 1 Report

The archive program at a local newspaper copies completed article files to a backup drive each evening. An editor enters a date, and the program displays the names of files copied on that date. Before copying, the program checks that the source file exists and that the backup drive has free space. A message is displayed if either check fails.

(a) Explain why an existence check is needed before opening the source file. [2]
(b) State one output that could be used if the backup drive is full. [1]
(c) When the copy is successful, state one item that could be written to a backup log file. [1]

Answer Details

(a) An existence check is needed because the requested source file may not exist. Trying to open a missing file would cause an error or make the copy operation fail. [2]

(b) A suitable output is an on-screen error message such as Backup drive full. A sound alert is also acceptable. [1]

(c) A backup log could record the filename copied. The date/time, copy-success status, or file size would also be valid. [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