Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1# Author: Mia Chen | ARecords who wrote the program so others know who to ask about it | |
| 2# Version 1.2 - added input validation | B# Purpose: Calculates the total cost of a school canteen order | |
| 3A change log in a header comment records each edit, with its date, so maintainers can see how the file has changed | CThe header comment is placed below the code instead of at the top of the file, so it is not easy to find. | |
| 4A header comment states the program's purpose at the top of the file so others know what it does | D# Changed 12/03/2025: fixed tax calculation | |
| 5total = 0 # Author: Sam Lee # Date: 04/05/2025 | EA version note that says which release this is and what changed | |
| 6# Program: Quiz game # Author: Ravi Patel total = 0 | FThe header has no date and no change log, so maintainers cannot tell when it was written or what was modified. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
header comment — A comment at the top of a file that records the program's purpose, author, date and any changes made, so others can understand and maintain the code.# Purpose: Calculate GST on prices# Author: Sam Lee# Date: 14/03/2025# Version: 1.2# Change log: Added input validation