nerdexam
iSQI

CTFL_SYLL_4.0 · Question #184

Which of the following statements best describes the way in which decision coverage is measured?

The correct answer is C. Measured as the number of decision outcomes executed by the tests, divided by the total number. Decision coverage, also known as branch coverage, is measured as the number of decision outcomes executed by the tests divided by the total number of decision outcomes in the test object. It ensures that every possible branch (true/false) decision in the code has been executed

Test Analysis and Design

Question

Which of the following statements best describes the way in which decision coverage is measured?

Options

  • AMeasured as the number of statements executed by the tests, divided by the total number of
  • BMeasured as the number of lines of code executed by the tests, divided by the total number of
  • CMeasured as the number of decision outcomes executed by the tests, divided by the total number
  • DIt is not possible to accurately measure decision coverage.

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    89% (17)

Explanation

Decision coverage, also known as branch coverage, is measured as the number of decision outcomes executed by the tests divided by the total number of decision outcomes in the test object. It ensures that every possible branch (true/false) decision in the code has been executed

Topics

#decision coverage#white-box testing#coverage measurement#structural testing

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice