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]
(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]
Everything you need to excel in your exams