nerdexam
ISTQB

CTFL18 · Question #535

Considering the following pseudo-code, calculate the MINIMUM number of test cases required to achieve 100% statement coverage and 100% decision coverage.

The correct answer is A. Statement coverage: 4. Decision coverage: 5. See the full explanation below for the reasoning.

Question

Considering the following pseudo-code, calculate the MINIMUM number of test cases required to achieve 100% statement coverage and 100% decision coverage.

Exhibit

CTFL18 question #535 exhibit

Options

  • AStatement coverage: 4. Decision coverage: 5
  • BStatement coverage: 3. Decision coverage: 4
  • CStatement coverage: 4. Decision coverage: 4
  • DStatement coverage: 4. Decision coverage: 3

How the community answered

(52 responses)
  • A
    81% (42)
  • B
    6% (3)
  • C
    2% (1)
  • D
    12% (6)

Community Discussion

No community discussion yet for this question.

Full CTFL18 Practice