In boundary value analysis testing method, if we want to design a test case…
2021
In boundary value analysis testing method, if we want to design a test case that computes the square root of integer values in the range from 1 to 4000, then the test case must include what values?
- A.
{0, 1, 3999, 4000}
- B.
{1, 2, 3999, 4000}
- C.
{0, 1, 4000, 4001}
- D.
{1, 2, 4000, 4001}
Attempted by 113 students.
Show answer & explanation
Correct answer: C
Boundary Value Analysis tests values at the edges of input domains. For a range from 1 to 4000, valid boundaries are 1 and 4000. Invalid boundaries immediately outside the range are 0 and 4001. Therefore, test cases should include values {0, 1, 4000, 4001} to cover both valid and invalid edge conditions effectively.