CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE

A system accepts a value from 1 to 41 inclusive. Using equivalence partitioning, what is the minimum number of test cases needed to cover all partitions?

  1. A. 5
  2. B. 3
  3. C. 2
  4. D. 4

Correct answer: B. 3

There are three partitions: below 1, 1 to 41 inclusive, and above 41; one representative from each partition suffices.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic