For a program of k variables, boundary value analysis yields ______ test cases
2016
For a program of k variables, boundary value analysis yields ______ test cases
- A.
4k − 1
- B.
4k
- C.
4k + 1
- D.
2k − 1
Attempted by 108 students.
Show answer & explanation
Correct answer: C
Boundary Value Analysis for k variables requires 4k + 1 test cases. This formula accounts for one nominal case plus four boundary values (min, min+, max-, max) for each of the k variables.
A video solution is available for this question — log in and enroll to watch it.