CS FundamentalsHardProduct-company interview pattern

A form has 3 parameters — browser (3 options), OS (3 options) and language (3 options). Exhaustive testing needs 27 combinations. What is the minimum number of tests that covers every PAIR of values across any two parameters (pairwise testing)?

  1. A. 6
  2. B. 27
  3. C. 3
  4. D. 9

Correct answer: D. 9

Any two parameters alone have 3 × 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 (Latin square) achieves exactly 9 while also covering all pairs for the third parameter.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic