Question 44
HardOriginal questionA shop gives each product a 5-digit code. The first four digits name the product, and the fifth, the check digit, is the sum of the first four digits taken modulo 10.
Which mistake can this check digit NOT catch?
Show the answer and explanation
CorrectNot quiteAnswer B
Correct answer: B
Explanation
A swap leaves the sum of the first four digits unchanged, so the check digit still matches.
Changing a single digit changes the sum by 1 to 9, which always changes its last digit.
Worth noting
This is why many real codes weight the digits differently, so that a swap changes the sum.
- Concept
- What a check digit can detect
- Typical timeTypical
- 150 s
- Your timeYours
- —
Practise this chapter →
Ten questions from Modulo Arithmetic & Congruence, at your own pace.