nerdexam
ISTQB

CTFL18 · Question #364

The following program part is given: IF (condition A) then DO B END IF How many test cases are necessary in order to achieve 100% statement coverage?

The correct answer is B. 2. See the full explanation below for the reasoning.

Question

The following program part is given:

IF (condition A) then DO B END IF How many test cases are necessary in order to achieve 100% statement coverage?

Options

  • A1
  • B2
  • C4
  • Da very high number

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    74% (20)
  • C
    15% (4)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full CTFL18 Practice