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 | |
|---|---|---|
| 1Typed 4519 instead of 4529 | ATyped 459 instead of 4529 | |
| 2Typed 4592 instead of 4529 | BA transposition error: two digits were swapped, so the check digit calculation gives a different result | |
| 3An omitted digit error: a digit is left out when the number is typed, so the number is too short | CThe same digits in the wrong order is a transposition error. The check digit calculation uses weights by position, so the result changes and the error is detected. | |
| 4An extra digit error: an additional digit is typed that should not be there, so the number is too long | DA check digit does not just check length. It recalculates from the digits, so it can detect a wrong digit and swapped digits too, as well as missing or extra digits. | |
| 5A student says: "4529 typed as 4259 is not an error because it has the same digits" | ETyped 45529 instead of 4529 | |
| 6A student says: "A check digit only checks that the number has the right length" | FAn incorrect digit error: one digit was typed wrongly, so the check digit no longer matches |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
check digit — An extra digit worked out from the other digits in a number. It catches typing errors: a wrong digit, two digits swapped (transposition), a missing digit or an extra digit.IF LENGTH(entered) <> 10 THEN
OUTPUT "Digit missing or extra"
ENDIFIF calculated <> checkDigit THEN
OUTPUT "Wrong digit entered"
ENDIFIF LENGTH(entered) < 10 THEN
OUTPUT "Omitted digit"
ENDIFIF LENGTH(entered) > 10 THEN
OUTPUT "Extra digit typed"
ENDIFIF calculated <> checkDigit THEN
OUTPUT "Digits swapped: transposition"
ENDIF