Which of the following best describes the way in which statement coverage is measured?
A.
Measured as the number of decision outcomes executed by the tests, divided by the total number of decision outcomes in the test object.
B.
It is not possible to accurately measure statement coverage.
C.
Measured as the number of statements executed by the tests, divided by the total number of executable statements in the code.
D.
Measured as the number of lines of code executed by the test, divided by the total number of lines of code in the test object.
The Answer Is:
C
This question includes an explanation.
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​​.
ISTQB-CTFL PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"