CS FundamentalsVery hardProduct company interview · GATE level
A configuration test has four parameters: browser (4 values), OS (3 values), language (2 values) and network (2 values). What is the minimum number of test cases that covers every pair of values of every two parameters (pairwise testing)?
- A. 8
- B. 9
- C. 12
- D. 48
Correct answer: C. 12
Any pairwise suite must contain all 4 x 3 = 12 browser-OS pairs, and each test covers only one of them, so at least 12 tests are needed. 12 are also enough: a computer search finds language and network values for the 12 browser-OS rows that cover every other pair, for example (browser, OS, language, network numbered from 0) 0000, 0100, 0211, 1000, 1100, 1211, 2000, 2101, 2210, 3011, 3110, 3200. Exhaustive testing would need 4 x 3 x 2 x 2 = 48. 9 applies to four 3-valued parameters, not this mix.
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
- 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…
- A system is estimated at 300 function points, and the chosen language averages 53 lines of code per function point. Using basic COCOMO for…
- A program has 12 distinct operators, 20 distinct operands, 90 total operator occurrences and 70 total operand occurrences. Using…