nerdexam
BCS-ISEB

ISEB-SWT2 · Question #64

Given the following fragment of code, how many tests are required for 100% statement coverage?

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

Question

Given the following fragment of code, how many tests are required for 100% statement coverage?

Options

  • A1
  • B2
  • C3
  • D4

How the community answered

(42 responses)
  • A
    10% (4)
  • B
    81% (34)
  • C
    7% (3)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full ISEB-SWT2 Practice