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
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)- A5% (1)
- B5% (1)
- C89% (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
Community Discussion
No community discussion yet for this question.