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 | |
|---|---|---|
| 1IF Mark >= 50 THEN → IF Mark >= 60 THEN | AThe student changed the condition but did not check the rest of the algorithm, so the message is now wrong. | |
| 2Re-trace with Mark = 60, 59 and 61 | BIF Total > 100 THEN OUTPUT "Large" ENDIF | |
| 3The new requirement needs one more value from the user, so add a new input. | CAmending a condition so the pass mark changes from 50 to 60. Only the limit in this one line changes. | |
| 4The new requirement needs a different action for large numbers, so add a decision. | DOUTPUT "Enter the bonus" INPUT Bonus | |
| 5Pass mark changed from 50 to 60 in the IF line, but OUTPUT still says "Pass is 50 or more" | EThe student did not re-trace the amended algorithm, so they missed that the loop still runs the old number of times. | |
| 6Amended algorithm was handed in without a trace, so a loop limit of 10 was left in place of the new limit of 20 | FRe-checking the amended algorithm with test data to make sure the rest still works. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
amend an algorithm — Find the part that must change for the new requirement, change only that part, then re-trace the algorithm to check the rest still works.// Amended: pass mark is now 60 or more
Passed ← Mark >= 60
OUTPUT Passed// Amended: also ask for the student's age
INPUT Name
INPUT AgeTotal ← Price * Quantity
// Amended: also show the total
OUTPUT TotalIF Total > 100 THEN
Total ← Total - 10
ENDIF// Re-trace: reset the running total first
Total ← 0
Total ← Total + Mark