CS FundamentalsHardCognizant · Capgemini pattern

A function takes two integer inputs, each valid in the range 1–100. Using standard (non-robust) boundary value analysis that varies one variable at a time while the other stays at its nominal value, how many test cases are needed?

  1. A. 9
  2. B. 8
  3. C. 13
  4. D. 25

Correct answer: A. 9

Each variable takes min, min+, max−, max while the other is nominal (4 per variable), plus one case with both nominal: 4n + 1 = 4(2) + 1 = 9. Robust BVA would give 6n + 1 = 13; worst-case BVA 5² = 25.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic