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 reject | ABeing a valid number does not make a value reasonable. A negative age is implausible and should fail the check. | |
| 2age = 250 | BAn unreasonable value because no person could be 250 years old | |
| 3A reasonableness check tests whether a value sits inside a sensible range | CA range-based reasonableness check that rejects any age outside 0 to 120 | |
| 4A plausible age passes a reasonableness check on a range of 0 to 120 | DThe range is too wide to be a useful reasonableness check, because an age of 250 would still be accepted. A sensible upper limit is about 120. | |
| 5Range check for age: 0 to 1000 | Eage = 16 | |
| 6age = -5 passes because it is a number | FIF mark >= 0 AND mark <= 100 THEN accept |
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 values are sensible and plausible for what they describe. An age of 250 fails a reasonableness check on a range, such as 0 to 120.SELECT name FROM people WHERE age > 120;=IF(AND(B2>=0,B2<=120),"OK","Check")IF age < 0 OR age > 120 THEN
DISPLAY "Age not reasonable"
END IFSELECT * FROM people WHERE age BETWEEN
0 AND 120;=COUNTIF(B2:B30,">120")