volume_mute

Equivalence Partition Example - Integer Input

publish date2026/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.

Less than 4 Between 4 and 10 More than 10 3 4 7 10 11 Number of input values Less than 10000 Between 10000 and 99999 More than 99999 9999 10000 50000 99999 100000 Input values

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


Quizzes you can take where this question appears