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 | |
|---|---|---|
| 1Subroutines make changes easier because the code is in one place. | AThe reason just repeats the claim. It should name a specific benefit, such as one place to change, and explain it. | |
| 2Subroutines make it easier. | BFUNCTION CalculateTotal(Price : REAL) RETURNS REAL RETURN Price * 1.2 ENDFUNCTION | |
| 3Use an example from the program: if the VAT rate changes, only the CalculateTotal function needs editing. | CA vague answer: it gives no benefit and no reason, so it earns no marks. | |
| 4With subroutines, a repeated task is written once and called many times, so a fix is made once. | DA full answer: it names a benefit (easier changes) and uses 'because' to give a reason (one place to edit). | |
| 5Answer: Subroutines are better and easier to use. | EThis is vague. It names no benefit and gives no reason. Fix it by naming a benefit and adding 'because' with a reason. | |
| 6Answer: Subroutines are good for maintenance because they are good. | FCALL ShowMenu() CALL ShowMenu() CALL ShowMenu() |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
benefit because reason — A full maintenance answer names a benefit of subroutines, such as one place to change, then uses because to give the reason, ideally with an example from the program, not just 'it is easier'.Benefit: one place to change
because the code is written only oncePROCEDURE PrintHeader()
OUTPUT "Quiz Game"
ENDPROCEDURECALL PrintHeader()
CALL PrintHeader()
OUTPUT "Next round"FUNCTION AddVAT(p : REAL) RETURNS REAL
RETURN p * 1.2
ENDFUNCTIONEasy to test because each subroutine can
be checked on its own.