CS FundamentalsVery hardProduct company interview · GATE level
A function has 4 independent integer inputs, each with a closed valid range. How many test cases do robust boundary value analysis (min-, min, min+, nom, max-, max, max+ for one variable at a time, the others at nominal), worst-case boundary value analysis (every combination of min, min+, nom, max-, max) and robust worst-case analysis (every combination of the 7 robust values) need?
- A. 17, 625 and 2401
- B. 24, 625 and 2401
- C. 25, 256 and 2401
- D. 25, 625 and 2401
Correct answer: D. 25, 625 and 2401
Robust BVA varies one input at a time over its 6 non-nominal values while the rest stay nominal, plus one all-nominal test: 6n + 1 = 25. Worst-case BVA takes the cross product of 5 values per input: 5^4 = 625. Robust worst-case takes 7 values per input: 7^4 = 2401. 24 forgets the shared all-nominal case; 17 is plain BVA (4n + 1); 256 uses 4 values per input.
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
- 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…
- 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…