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)?
- A. 6
- B. 27
- C. 3
- 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.
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 new app version is first served to 5% of users while error rates and latency are watched; if the metrics stay healthy, the share is…
- According to Semantic Versioning precedence rules, which list is in correct ascending order?
- Counting every simple condition of a compound boolean expression as a separate decision (each && / || adds one), what is the cyclomatic…
- What is the cyclomatic complexity of this fragment? Count each case label other than default as one decision and each simple condition…
- A loop body contains an if-else followed by an independent if (with no else), and nothing else that branches. The loop runs between 0 and…
- A function has 4 independent integer inputs, each with a closed valid range. How many test cases do robust boundary value analysis (min…