Double entry check
Data is entered twice and the two entries are compared. Any difference shows a mistake, so the user must enter it again. It misses the same mistake made twice.
Understanding Double entry check in IGCSE Computer Science Paper 2
What it does: A REPEAT loop ends only when both entries are equal. This is the key rule of a double entry check. A mismatch shows a mistake, so the user gets an error message and must enter the data again. The same mistake made twice gives two identical entries. The check cannot tell that the data is wrong. The program does not know how many attempts are needed, so it repeats until the two entries are equal. The <> operator tests for a difference. If the entries do not match, a typing mistake has been found.
Common mistakes: The password should only be accepted when the two entries match. <> means 'not equal', so the program accepts it when they differ. It should be IF Pass1 = Pass2 THEN. The second entry overwrites the first entry because it is read into Email1 again. Email2 never gets a value, so the two entries cannot be compared. It should be INPUT Email2.
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 60–70) and word search (Modules 47–70).
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
double entry checkFill in the Blanks
Spot the Error
Student with a class code? Join your class →