Calculating a check digit with weights and modulus 11
Multiply each digit by its weight, add them up, divide by 11 and use the remainder (often 11 minus it) as the check digit. A 10 is written X in ISBN-10.
Understanding Calculating a check digit with weights and modulus 11 in IGCSE Computer Science Paper 1
What it does: Each digit is multiplied by its own weight (20, 6 and 2), and the products add up to a weighted total of 28. 28 divided by 11 leaves a remainder of 6, so the check digit is 11 - 6 = 5. The products are added to give a total. Modulus 11 means dividing that total by 11 and keeping the remainder. 2x4 = 8, 5x3 = 15 and 1x2 = 2. Then 8 + 15 + 2 = 25. 11 x 2 = 22, and 25 - 22 = 3. The remainder is 3. The check digit must be a single character, so 10 is written as the letter X.
Common mistakes: DIV gives the whole-number quotient, but the check digit needs the remainder. It should be rem ← total MOD 11, which gives 37 MOD 11 = 4. In ISBN-10 it is a check digit of 10 that is written as X, because 10 cannot fit in one digit. The test should be check = 10.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 168–178) and word search (Modules 168–188).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
weighted check digitFill in the Blanks
Spot the Error
Student with a class code? Join your class →