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 | |
|---|---|---|
| 1Range check: Mark >= 0 AND Mark <= 100 | AA length check tests the number of characters, so it cannot stop 3 or 14 being entered. A list check against the valid year groups is better. | |
| 2Length check: LENGTH(Phone) = 11 | BYearGroup IN (7, 8, 9, 10, 11) | |
| 3A Name field is required, so the record must not be saved with it empty. Use a presence check. | CChecks the data has exactly the right number of characters, so it fits a phone number | |
| 4A YearGroup field can only hold a few fixed values, so check it against an allowed list. | DA presence check only confirms that something was typed, so it would accept a mark of 500. A range check from 0 to 100 should be used. | |
| 5Validation for Mark: presence check | EChecks a number lies between a lowest and highest allowed value, so it fits a test mark or an age | |
| 6Validation for YearGroup: length check | FName <> '' |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
validation check — A rule that tests data on entry. Pick the one that fits each field: range for a mark, length for a phone number, presence for a required name, list for a year group.Mark: range check, between 0 and 100Phone: length check, must be 10 charactersFirstName: presence check, cannot be emptyYearGroup: list check, only 7, 8, 9, 10, 11IF LENGTH(Phone) = 10 THEN
ACCEPT