Check digits and automatic repeat query Cambridge IGCSE Computer Science (9–1) revision
Not started
Learn it
In plain words
Errors do not only happen in cables. People make them too, typing a long number or scanning a worn barcode. A check digit catches those. And once any error has been found, something has to get the data sent again: that is the job of automatic repeat query.
6 things to know
- A check digit is an extra digit worked out from the other digits of a code and added to the end.
- When the code is typed or scanned, the computer works the check digit out again. If it does not match the one entered, there is an error.
- A check digit can catch a wrong digit, two digits swapped round, and a digit missed out or added.
- Check digits are used in the ISBN on a book and in barcodes.
- Automatic repeat query (ARQ) uses acknowledgements and a timeout. The receiver checks the data. If it is correct, it sends a positive acknowledgement. If not, it sends a negative acknowledgement and the data is sent again.
- If the sender gets no acknowledgement within a set time (the timeout), it sends the data again automatically.
Worked example
A product code is 2714, and its check digit is the last digit of the sum of its digits. Work out the check digit, and show that swapping two digits is not always caught by a simple sum.
- Sum of the digits: 2 + 7 + 1 + 4 = 14. The check digit is 4, giving 27144.
- If the code is typed as 7214 by mistake, the sum is still 14 and the check digit still 4.
- So real check digit systems multiply each digit by a different weight first. Then swapping two digits changes the total.
Tips and tricks
- A check digit finds errors in data entry. Parity, checksums and echo checks find errors in transmission. Keep the two jobs apart.
- For ARQ, use the three key words: acknowledgement, timeout and resend.
It lands in your notebook with its questions as flashcards.
Check digits and automatic repeat query: 5 questions and answers
These are the quiz’s questions. Do the quiz first, then come back here for the ones that got you.
What is a check digit?
It is added to the end and recalculated whenever the code is entered.
Which kind of error is a check digit designed to detect?
It checks data entry.
Where is a check digit used?
Books' ISBNs and product barcodes both end in one.
In ARQ, what does the receiver send when data arrives without error?
The sender then knows it can move on.
In ARQ, what happens if the sender receives no acknowledgement before the timeout?
Silence is treated as failure.
Quiz
5 questions
Tap an answer and you’ll see straight away whether it’s right, and why.
Worksheet
2 questions, 6 marks. Write your answers on paper, then check them.
Check digits and automatic repeat query
Cambridge IGCSE Computer Science (9–1) 0984 · 6 marks · papermunch.org
Name ______________________________ Date ______________
Give two examples of where a check digit is used.[2]
Show answerHide answer
In the ISBN of a book, and in a barcode on a product.
Describe how automatic repeat query (ARQ) makes sure data is received without error.[4]
Show answerHide answer
The receiver checks the data for errors. If none is found it sends a positive acknowledgement. If an error is found it sends a negative acknowledgement and the sender sends the data again. If no acknowledgement arrives before the timeout, the sender resends the data.
Answers: Check digits and automatic repeat query
- 1. In the ISBN of a book, and in a barcode on a product.
- 2. The receiver checks the data for errors. If none is found it sends a positive acknowledgement. If an error is found it sends a negative acknowledgement and the sender sends the data again. If no acknowledgement arrives before the timeout, the sender resends the data.



