CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE

A system accepts a value from 18 to 98 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 18, 18 to 98 inclusive, and above 98; one representative from each partition suffices.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic