nerdexam
BCS-ISEB

BH0-010 · Question #4

The flow graph below shows the logic of a program for which 100% statement coverage and 100% decision coverage is required on exit from component testing. The following test cases have been run…

The correct answer is A. Statement coverage is 100%; decision coverage is 100%. See the full explanation below for the reasoning.

Question

The flow graph below shows the logic of a program for which 100% statement coverage and 100% decision coverage is required on exit from component testing. The following test cases have been run:

  • Test Case 1 covering path A, B, D, G
  • Test Case 2 covering path A, B, D, E, F, E, F, E, F, E, G
  • Test Case 3 covering path A, C, D, E, F, E, G

Which of the following statements related to coverage is correct?

Exhibit

BH0-010 question #4 exhibit

Options

  • AStatement coverage is 100%; decision coverage is 100%.
  • BStatement coverage is less than 100%; decision coverage is 100%.B.Statement coverage is
  • CStatement coverage is 100%; decision coverage is less than 100%.C.Statement coverage
  • DStatement coverage and decision coverage are both less than 100%.D.Statement coverage

How the community answered

(26 responses)
  • A
    77% (20)
  • B
    12% (3)
  • C
    8% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full BH0-010 Practice