Abnormal test data
Test data of the wrong type or outside the allowed values, such as -5 or letters for an age, or an empty input. The program should reject it.
Understanding Abnormal test data in IGCSE Computer Science Paper 2
What it does: Leaving the field empty fails a presence check, so it is abnormal data and the expected outcome is rejected. The value -20 is invalid for an age, so the test case expects it to be rejected and an error message shown. -5 is outside the allowed range, so it is abnormal. 35 is normal data because it is inside the range and should be accepted.
Common mistakes: -5 is outside the allowed range 0 to 120, so it is abnormal test data, not normal. Line 3 should be 'Type: abnormal'. Letters are the wrong data type for an age, so the program should reject them. Line 3 should be 'Expected: rejected'.
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 71–82) and word search (Modules 71–92).
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
Abnormal test dataFill in the Blanks
Spot the Error
Student with a class code? Join your class →