Boundary test data
The largest and smallest acceptable values plus the nearest rejected values either side of each limit, e.g. 0 and -1, 120 and 121 for a range of 0 to 120.
Understanding Boundary test data in IGCSE Computer Science Paper 2
What it does: One value on each side of the upper limit shows whether the program accepts 120 but rejects 121. The bottom boundary pair is the smallest accepted value (0) and the nearest rejected value (-1). 1 is also accepted, so it does not test the limit. Boundary data checks that the limits are in the right place, for example that <= and < have not been mixed up. The test must include -1 and 121 as well as 0 and 120, so both sides of each limit are checked.
Common mistakes: The boundary values accepted are the smallest and largest valid values, 0 and 120. 1 and 119 are inside the range, not on its limits. 1 is inside the range 0 to 120, so it is accepted. The rejected boundary value just below the bottom limit is -1.
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
Boundary test dataFill in the Blanks
Spot the Error
Student with a class code? Join your class →