For a function of two variable, boundary value analysis yields.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. 4n + 1 test cases
Explanation
In standard boundary value analysis each variable is tested at five values — minimum, just above minimum, nominal, just below maximum and maximum — while all the other variables are held at their nominal value. That gives 4 boundary tests per variable plus a single all-nominal test that is shared by every variable, so the total is 4n + 1 test cases for n variables. For a function of two variables this works out to 4 × 2 + 1 = 9 test cases. Option (ii) is therefore correct; the 4n + 3 figure belongs to robust boundary value analysis in a different formulation and 2n + 4 has no basis.More System Software and Operating System questions
- Fault-based testing technique is
- Which of the following is/are behavioral testing technique(s)? (A) Equivalence Partitioning (B) Graph-Based Testing Method (C) Boundary Val…
- Software validation mainly checks for inconsistencies between:
- In the context of software testing, which of the following statements is/are NOT correct? P: A minimal test set that achieves 100% path cov…
- Consider the following statements: S1: White-box tests are based on specifications; better at telling whether program meets specification,…
- Consider the method mcq(): int mcq(boolean a, boolean b, boolean c, boolean d) { int ans = 1; if (a) { ans = 2; } else if (b) { ans = 3; }…