CS FundamentalsVery hardProduct company interview · GATE level

A form has three inputs. Input A has 3 valid and 2 invalid equivalence classes, B has 4 valid and 1 invalid, and C has 2 valid and 2 invalid. What is the minimum number of tests for (i) weak normal testing (every valid class used at least once), (ii) strong normal testing (every combination of valid classes) and (iii) weak robust testing (weak normal plus one test per invalid class, with all other inputs valid)?

  1. A. 4, 24 and 9
  2. B. 9, 24 and 14
  3. C. 4, 24 and 14
  4. D. 3, 24 and 8

Correct answer: A. 4, 24 and 9

Weak normal: each test can cover one valid class of every input at once, so the input with the most valid classes sets the minimum: max(3, 4, 2) = 4. Strong normal: the cross product 3 x 4 x 2 = 24. Weak robust: the 4 weak-normal tests plus one test for each invalid class, 2 + 1 + 2 = 5, because invalid classes are tested one at a time so that a rejection can be traced to one input: 9. Adding the valid class counts (3 + 4 + 2) instead of taking the maximum gives 9 and 14.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic