Test data
The input values chosen before testing, such as normal, abnormal, extreme and boundary values, used to run a program so its results can be compared with the expected results.
Understanding Test data in IGCSE Computer Science Paper 2
What it does: 1 and 10 are the edges of the range that are accepted, while 0 and 11 are just outside and should be rejected. The input and the expected result are written down before the test, so the actual output can be compared with it. Abnormal data should be rejected, such as the wrong data type. 13 is valid, so it is normal data. The four types of test data cover typical, invalid and limit values, so errors can be found and fixed.
Common mistakes: 150 is outside the range 1 to 100, so it is abnormal data and would be rejected. Normal test data must be inside the range, for example 50. 55 is inside the range 1 to 100, so it is normal data and would be accepted. Abnormal test data must be outside the range, for example -5.
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
test dataFill in the Blanks
Spot the Error
Student with a class code? Join your class →