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 | |
|---|---|---|
| 1Age must be between 10 and 100 | AAge rule: 10 to 100. Typed: 15. Real age: 16. Result: accepted | |
| 2Please type your email address again | BValidation should happen when data is entered. Checking late lets bad data spoil results such as totals and averages before it is caught. | |
| 3Valid but wrong data: a rule can accept an age of 15 even when the person is really 16, because validation only checks that data is reasonable | CA range check: the system rejects any age outside the allowed range when it is typed in | |
| 4Rejecting versus warning: a strict rule blocks bad data and a softer rule lets the user continue after a message | DStop: value rejected / Warning: value allowed after a message | |
| 5Validation proved the age 15 was true, so no more checking is needed | EValidation only checks that data is reasonable and in the right form. It cannot prove the data is true, so a valid age can still be wrong. | |
| 6Check data for errors only at the end, after all the results are worked out | FVerification: the user re-enters the data so the two entries can be compared for typing mistakes |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
validation — An automatic check that data is reasonable and in the right form when entered. It blocks bad data early, but it cannot prove the data is true (a valid age of 15 could still be wrong).=IF(AND(B2>=10,B2<=18),"Valid","Invalid")age ← 15
IF age >= 0 AND age <= 120 THEN
OUTPUT "Valid"IF mark <= 100 THEN
OUTPUT "Saved"
ELSE OUTPUT "Rejected: 0 to 100 only"IF age < 0 OR age > 120 THEN
OUTPUT "Warning: check this age"=IF(B2=C2,"Match","Re-check")