nerdexam
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)
  • A
    70% (26)
  • B
    8% (3)
  • C
    16% (6)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full CTFL18 Practice