Suggesting test data for a range check
Pick one normal, abnormal, extreme and boundary value for the range and say accept or reject. For 0 to 100: 50 normal, -5 abnormal, 100 extreme, 101 boundary.
Understanding Suggesting test data for a range check in IGCSE Computer Science Paper 2
What it does: 100 is the top end of the range 0 to 100. It is the highest valid value, so it is extreme data and is accepted. 101 is the value just above the upper limit of 100. Testing it checks that the range check rejects the first invalid value. Abnormal data should always be rejected. -5 is below the range and "abc" is not a number at all. Give an example of each type and say accept or reject with a reason, for example: 101 is rejected because it is above the maximum of 100.
Common mistakes: -5 is below 0, so it is outside the range. Abnormal data must be rejected, so the line should say reject. 100 is the largest value allowed, so it is extreme data and it is valid. It should be accepted, not 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
Range check test dataFill in the Blanks
Spot the Error
Student with a class code? Join your class →