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 age < 0 OR age > 120 THEN flag | AA check that rejects a test mark that is higher than the maximum possible score | |
| 2IF mark > 100 THEN reject | BIF temp >= -10 AND temp <= 50 THEN accept | |
| 3An outlier that looks wrong should be flagged for review, not silently accepted | CThe check only tests the lower limit, so an impossible age of 250 is accepted. It needs an upper limit such as age <= 120. | |
| 4A reasonableness check tests a value against a sensible range for its context | DIF price > 10 * average_price THEN review | |
| 5IF age >= 0 THEN accept (age = 250) | ENo reasonableness check was applied, so an impossible value was accepted as correct. The value should have been flagged and corrected. | |
| 6Weight of a student = 5000 kg, record accepted | FA reasonableness check that flags impossible ages that fall outside a believable range |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
reasonableness — Data is reasonable when its value is sensible and believable in its context, so impossible values or odd outliers (like an age of 250) are flagged by reasonableness checks.if age > 120:
print("Unreasonable age")if age < 0:
flag = TrueSELECT * FROM students
WHERE yearLevel NOT BETWEEN 7 AND 12;if age < 0 or age > 120:
print("Check this value")if mark > 100:
print("Impossible mark")