What validation cannot do
Validation only checks data is reasonable and in the right form, so a valid value can still be wrong, e.g. age 15 typed instead of 51. Verification is also needed.
Understanding What validation cannot do in IGCSE Computer Science Paper 2
What it does: This range check accepts any age from 0 to 120. It never checks whether the age is the user's true age. A double entry check compares two entries. If the user typed 15 then 51, the mismatch is spotted, which validation alone would miss. 15 is inside the range 0 to 120, so it passes validation. Validation cannot know the real age is 51. Validation only checks that data is sensible and follows the rules. It cannot prove the data matches the truth. A valid value follows the rules, but it may not be what the user meant to enter.
Common mistakes: An IF statement must be closed with ENDIF, not ENDWHILE. ENDWHILE belongs to a WHILE loop. Note that the range check accepts both 15 and 51, so a typing slip still passes. Validation only shows that a value is reasonable, not that it is correct. 15 typed instead of 51 would pass this check, so the message should say the age is reasonable.
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
valid but wrongFill in the Blanks
Spot the Error
Student with a class code? Join your class →