Boundary test values
Test inputs at the edge of a condition. For age >= 18, test 17 (just below), 18 (exactly on) and 19 (just above) to check the algorithm picks the right path at the edge.
Understanding Boundary test values in VCE Software Development U3O1
What it does: The edge of score > 50 is 50, so the tests are 49 (just below), 50 (exactly on) and 51 (just above). The boundary number is the one written in the condition. 51 is just above it. Mistakes with >= and > only show up when we test the exact boundary value. 100 is far from the edge. You also need values like 49, 50 and 51 to check the boundary. With >, the value 18 would wrongly go down the 'no' path. 25 passes both versions, so the bug stays hidden. The value 18 sits exactly on the edge of age >= 18, so it shows whether >= was written correctly.
Common mistakes: 18 is exactly on the boundary. Because the condition uses >=, 18 is included and prints 'Adult'. The line should be: Test 18 -> Adult. Boundary tests need values just below, exactly on and just above the edge. 10 and 90 are far from 50. The line should be: Test values: 49, 50, 51.
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 168–177) and word search (Modules 168–193).
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 valuesFill in the Blanks
Spot the Error
Student with a class code? Join your class →