Learn in your language
Skip to content
IGCSE · Cambridge (CIE) · 0984

Use check digits to validate identification numbers

Explain how a calculated digit can detect some transcription errors in a code.

Section 7 · Algorithm design and problem-solving

Cambridge IGCSE Computer Science 0984 · Algorithm design and problem-solving · 2026–2028 Version 4 · 0984 (9–1) · 7
Exam scope and assessment notes

This sequence follows Cambridge IGCSE Computer Science 0984, 2026–2028 syllabus Version 4. It covers subject content Topic 7 only. The separately published 2029–2031 syllabus is not mapped here. Practice is original, self-checked and does not award an official Cambridge grade. Full timed papers and human subject-teacher review remain outstanding. Cambridge states that 0984 has the same 2026–2028 subject content as 0478, with 9–1 grading. In June and November, Cambridge lists 0984 in Administrative zone 3 and for centres in Oman and the UAE. Confirm availability for your centre and exam series with Cambridge International. The separately published 2029–2031 syllabus changes to Python 3 only and removes pseudocode; this 2026–2028 route does not cover those changes.

Before you begin

  • No programming language is required. Be comfortable with place value and multiplication; each lesson introduces the computer-science notation it uses.

Work on paper. Try each question before revealing help, and explain why your method works.

Quick readiness check

How is a check digit used?

What you will learn

  • Explain the purpose of a check digit
  • Describe comparison with a recalculated digit
  • Recognise that a check digit cannot detect every error

A check digit detects some entry errors

A check digit is an extra digit calculated from the other digits in a code, such as a barcode or identification number. When the code is entered or scanned, the system recalculates the expected check digit and compares it with the supplied one.

Apply and check the rule

A mismatch can reveal a transcription error. A matching check digit does not prove that every digit is correct, because some errors may produce the same check result. It is a validation aid, not a guarantee or proof of identity.

Pause and explain

Does a matching check digit prove every character is correct?

Put the idea to work

Worked example

A scanned product code has a check digit that does not match the calculated value. What should the system do?

Show the worked solution
  1. The mismatch suggests an entry or scan error.
  2. Do not accept the code as valid without review.
  3. Request a rescan or correction.

Answer Reject or flag the code and request a rescan or correction.

Try a topic test

Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.

Test this topic →

From guided practice to a new situation

Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.

1 · Guided

Describe the role of a check digit when a barcode is scanned.

Give me a hint

Explain what is calculated and compared.

Compare my reasoning
  1. Use the other digits to calculate an expected check digit.
  2. Compare the calculated value with the scanned check digit.
  3. Flag the code if they do not match.

The system recalculates the expected digit from the code and compares it with the supplied digit to detect some errors.

Look for these in your work

  • Calculation
  • Comparison
  • Mismatch response
2 · Independent

A code's check digit passes, but the wrong product was selected at checkout. Explain why the check did not prove the product identity.

Give me a hint

The check digit tests internal consistency, not the user's intention.

Compare my reasoning
  1. The scanned code may be valid for a different product.
  2. A check digit detects some transcription errors within a code.
  3. The user or till must still confirm that the item matches the intended purchase.

A valid check digit only supports that the code is internally consistent; it does not prove the selected product is the one the buyer intended.

Look for these in your work

  • Scope of check
  • Valid code
  • Identity/intention
3 · Transfer

A student says every two-digit swap will be detected by a check digit. Correct the claim and suggest an additional verification action.

Give me a hint

Some calculation schemes can produce the same check value after certain errors.

Compare my reasoning
  1. A check digit detects some but not all transcription errors.
  2. A swapped pair may sometimes leave the check result unchanged.
  3. Compare the entry with the original source or rescan it.

A check digit cannot guarantee detection of every swap. Verify the code against its source or scan it again.

Look for these in your work

  • Detection limit
  • Possible undetected error
  • Verification

Common mistakes

  • Saying a check digit prevents all errors
  • Calling a check digit verification against the original record
Recall without your notes

What can you explain now?

What does a check digit help detect?

Compare with the explanation

Some errors in an entered code

The system recomputes it and checks for a mismatch.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Make it stick

How does a check digit work, and what is its limitation?

If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.

Keep learning Computer Science (9-1)

Course scope and assessment

165 original lessons map the listed objectives across all 10 main topics in the 2026–2028 Version 4 syllabus. Cambridge states that 0984 has the same subject content as 0478, with 9–1 grading. Three retained introductory lessons remain available but are not counted as syllabus-mapped teaching. The 2023–2025 syllabus remains unmapped. The separately published 2029–2031 syllabus changes to Python 3 only and removes pseudocode; this 2026–2028 route does not cover those changes. In June and November, Cambridge lists 0984 in Administrative zone 3 and for centres in Oman and the UAE. Confirm availability for your centre and exam series with Cambridge International. Practical programming in an executable browser workspace, full timed-paper practice and human subject-teacher review remain outstanding. Practice is self-checked and does not award an official Cambridge grade.

StudyForA · Learn with understanding

Original teaching content and links to official sources. Check your exam year and qualification before using a resource.