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 | |
|---|---|---|
| 1Digits 1234 changed to 1243, check digit still matches | APassing the check does not prove the number is right. A wrong number can still give the same check digit. | |
| 2Valid ISBN typed, but it is for a different book | BA wrong number that still passes the check, because the error happened to give the same check digit | |
| 3A check digit checks the digits only, not what the number means | CThe number passes the check but belongs to the wrong item, because a check digit tests digits, not meaning | |
| 4A check digit is not designed to find errors during data transmission | DParity bit or checksum is used for transmission errors | |
| 5Check digit passed, so the number must be correct | EA valid number can belong to a different book. The check digit cannot tell if the item is the one intended. | |
| 6The check digit is correct, so this is the right book | Fcheck_digit_ok = (calculated == last_digit) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
check digit limitation — A wrong number can still pass the check digit test, and a valid number may belong to the wrong item. The check digit tests the digits only, not what they mean.total ← 55
valid ← (total MOD 11) = 0valid ← TRUE
IF valid = TRUE THEN OUTPUT "Accepted"checkA ← 7
checkB ← 7
IF checkA = checkB THEN OUTPUT "Pass"isbn ← "9780306406157"
IF ISBNValid(isbn) THEN
OUTPUT "Digits valid, book unknown"digitsOK ← TRUE
itemOK ← FALSE
result ← digitsOK AND itemOK