CS FundamentalsHardGATE CS · Software Engineering · Advanced

A configuration has 4 parameters with 3 possible values each. What is the minimum number of test cases needed to cover every pair of values of every two different parameters at least once (pairwise / 2-way testing)?

  1. A. 12
  2. B. 9
  3. C. 6
  4. D. 81

Correct answer: B. 9

Any two parameters have 3 x 3 = 9 value pairs and one test covers only one pair of those two parameters, so at least 9 tests are needed; an orthogonal array L9 (3^4) attains exactly 9. Exhaustive testing needs 81.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic