nerdexam
ISTQB

CTFL18 · Question #482

For the code fragment given below, which answer correctly represents minimum tests required for statement and branch coverage respectively?

The correct answer is B. Statement Coverage = 1. See the full explanation below for the reasoning.

Question

For the code fragment given below, which answer correctly represents minimum tests required for statement and branch coverage respectively?

Exhibit

CTFL18 question #482 exhibit

Options

  • AStatement Coverage = 2
  • BStatement Coverage = 1
  • CStatement Coverage = 2
  • DStatement Coverage = 1

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    82% (23)
  • C
    11% (3)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full CTFL18 Practice