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)?
- A. 4, 24 and 9
- B. 9, 24 and 14
- C. 4, 24 and 14
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- What is the minimum number of test cases that achieves MC/DC (unique-cause modified condition/decision coverage: for every condition, two…
- A configuration test has four parameters: browser (4 values), OS (3 values), language (2 values) and network (2 values). What is the…
- The tests (x = 3, y = 4) and (x = -2, y = 7) are run on this function. What statement, branch (decision) and condition coverage do they…
- Basic COCOMO for a semi-detached project uses Effort = 3.0 x KLOC^1.12 person-months and Development time = 2.5 x Effort^0.35 months. For…
- Intermediate COCOMO for an organic project uses Effort = 3.2 x KLOC^1.05 x EAF, where EAF is the product of the cost-driver multipliers. A…
- Function point counts with weights in brackets: external inputs - 6 simple (3), 4 average (4), 2 complex (6); external outputs - 5 average…