volume_mute
Equivalence Partition Example - Integer Input
publish date: 2026/06/17 05:49:37.442429 UTC
volume_mute
A program specification states: the program accepts 4 to 8 inputs which are 5-digit integers greater than 10,000. Based on equivalence partitioning, identify the correct input partitions for the number of inputs.
Which set of input partitions correctly represents the number-of-inputs dimension for this specification?
Correct Answer
Less than 4, between 4 and 8, more than 8
Explanation
The specification says the program accepts 4 to 8 inputs. This creates three partitions for the number of inputs: (1) Less than 4 - invalid, too few; (2) Between 4 and 8 - valid range; (3) More than 8 - invalid, too many. Boundary test values would be 3, 4, 7, 8, and 9.
Reference
Software Engineering, Ian Sommerville, 10th edition
