ISTQB Certified Tester Foundation Level v4.0 — Question 4
You are using boundary value analysis to determine your test data.
What values should you use to test a routine that requires an integer input (x) to be greater than zero and less than 100 to achieve 100% minimum coverage using the two-point boundary value analysis technique?
Answer options
- A. 0, 100
- B. -1, 1, 99, 101
- C. 0, 1, 99, 100
- D. -1, 0, 1, 99, 100, 101
Correct answer: C
Explanation
The correct answer is C because it includes the boundary values just inside and just outside the limits (1 and 99) along with the boundary values themselves (0 and 100). Options A and B do not cover the necessary values effectively for both sides of the boundaries, while option D includes unnecessary values that do not contribute to testing the boundaries effectively.