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 | |
|---|---|---|
| 1weights: 1 3 1 3 1 3 1 3 1 3 1 3 | AThe first 12 digits of an ISBN-13 are multiplied by 1 and 3 alternately, starting with 1 for the first digit. | |
| 2(10 - total MOD 10) MOD 10 | BThe weights are the wrong way round. The first digit must be multiplied by 1, not 3. | |
| 3The weighted total is 87, so the check digit must bring it up to 90. | Ccheck = (10 - 87 MOD 10) MOD 10 # 3 | |
| 4The ISBN-13 weights alternate 1 and 3, so digit 2 is multiplied by 3 and digit 3 is multiplied by 1. | Dtotal = d1*1 + d2*3 + d3*1 + d4*3 | |
| 5total = d1*3 + d2*1 + d3*3 + d4*1 | EFinds the check digit: the number that must be added to the weighted total to reach the next multiple of 10. | |
| 6check = total MOD 10 | FThe remainder is not the check digit. The check digit is the amount needed to reach the next multiple of 10, so 10 minus the remainder (or 0 if the remainder is 0). |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ISBN-13 check digit — The last digit of an ISBN-13, found by weighting the first 12 digits 1 and 3 alternately, adding them, and choosing the digit that makes the total a multiple of 10.total ← d1*1 + d2*3 + d3*1 + d4*3remainder ← total MOD 10check ← (10 - remainder) MOD 10isbn10Valid ← (total MOD 11) = 0FOR i ← 1 TO 12
total ← total + digit[i] * weight
NEXT i