Multiple choice technology testing

A program validates a numeric field as follows: - Values less than 10 are rejected - Values between 10 and 21 are accepted - Values greater than or equal to 22 are rejected Which of the following input value sets covers all of the equivalence partitions?

  1. 10,11,21

  2. 3,20,21

  3. 3,10,22

  4. 10,21,22

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

Equivalence partitioning divides input into valid and invalid ranges. This question has three partitions: <10 (invalid), 10-21 (valid), >=22 (invalid). Option C (3,10,22) correctly samples all three: 3 from the low invalid partition, 10 from the valid partition boundary, and 22 from the high invalid partition boundary. Option A misses the invalid partitions entirely, B misses the high invalid boundary, and D misses the low invalid partition.