ISTQB
CTFL18 · Question #518
The following condition is given: Integer x, y; IF x > 0 AND x < 100 y=y+x; END-IF Using boundary analysis for x, which test cases are required?
The correct answer is A. -1, 0, 1, 99, 100, 101. See the full explanation below for the reasoning.
Question
The following condition is given:
Integer x, y; IF x > 0 AND x < 100 y=y+x; END-IF Using boundary analysis for x, which test cases are required?
Options
- A-1, 0, 1, 99, 100, 101
- B-1, 0, 100, 101
- C-500, -10, 0, 1, 99, 100, 101, 500
- D0, 1, 99, 100
How the community answered
(37 responses)- A70% (26)
- B8% (3)
- C16% (6)
- D5% (2)
Community Discussion
No community discussion yet for this question.