Multiple choice technology testing

Given the following specification, which of the following values for age are in the SAME equivalence partition? If you are less than 18, you are too young to be insured. Between 18 and 30 inclusive, you will receive a 20% discount. Anyone over 30 is not eligible for a discount.

  1. 17, 18, 19

  2. 29, 30, 31

  3. 18, 29, 30

  4. 17, 29, 31

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The specification creates three equivalence partitions: under 18 (no insurance), 18-30 inclusive (discount eligible), and over 30 (no discount). Values 18, 29, and 30 all fall within the same partition (18-30 inclusive) and would receive the same 20% discount. The other options mix values from different partitions (17 is under 18, 31 is over 30).