nerdexam
iSQI

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…

Test Analysis and Design

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)
  • A
    7% (4)
  • B
    4% (2)
  • C
    88% (50)
  • D
    2% (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

#statement coverage#white-box testing#code coverage#coverage measurement

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice