CTFL_SYLL_4.0 · Question #176
Which of the following best describes the way in which statement coverage is measured?
The correct answer is C. Measured as the number of statements executed by the tests, divided by the total number of. Statement coverage is a metric used in white-box testing that measures the percentage of executable statements in the code that have been executed by the test cases. It is calculated as the number of statements executed by the tests divided by the total number of executable…
Question
Which of the following best describes the way in which statement coverage is measured?
Options
- AMeasured as the number of decision outcomes executed by the tests, divided by the total number
- BIt is not possible to accurately measure statement coverage.
- CMeasured as the number of statements executed by the tests, divided by the total number of
- DMeasured as the number of lines of code executed by the test, divided by the total number of
How the community answered
(57 responses)- A7% (4)
- B4% (2)
- C88% (50)
- D2% (1)
Explanation
Statement coverage is a metric used in white-box testing that measures the percentage of executable statements in the code that have been executed by the test cases. It is calculated as the number of statements executed by the tests divided by the total number of executable statements in the code, providing an indication of how much of the code has been tested.
Topics
Community Discussion
No community discussion yet for this question.