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 | |
|---|---|---|
| 1check digit | AThe check digit is calculated from the other digits and added to the end of the number, not chosen randomly | |
| 2recalculate and compare | Bnumber = 978030640615 -> check digit = calc(number) | |
| 3The check digit is calculated from the other digits of the number | CAn extra digit added to the end of a number, calculated from the other digits, to detect data entry mistakes | |
| 4On entry, the check digit is recalculated and compared with the one typed | DOn entry, the system works out the check digit again from the other digits and compares it with the one typed | |
| 5A check digit is used to detect errors in data sent across a network | EA check digit detects data entry errors made by a person typing or scanning, not errors in transmission | |
| 6The check digit is chosen at random and put at the start of the number | FIF calc(first digits) <> last digit THEN reject |
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 added to the end of a number, calculated from its other digits. It is recalculated on entry and compared, to detect data entry mistakes.total <- digit1 + digit2 + digit3
check <- total MOD 10IF newCheck = enteredCheck THEN
OUTPUT "Number accepted"
ENDIFIF newCheck <> enteredCheck THEN
OUTPUT "Check digit error"
ENDIFremainder <- total MOD 11
checkDigit <- 11 - remainderIF newCheck <> enteredCheck THEN
OUTPUT "Please re-enter the number"
ENDIF