Which of the following statements about statement coverage is TRUE?
A.
Achieving 90% statement coverage ensures that 90% branch coverage is achieved.
B.
Achieving 100% statement coverage ensures that no variable within the code has been used without being initialised.
C.
Achieving 100% statement coverage ensures that 100% branch coverage is achieved
D.
Achieving 80% statement coverage ensures that 80% of all executable statements within the code have been exercised.
The Answer Is:
D
This question includes an explanation.
Explanation:
Statement coverage measures the percentage of executable statements that have been exercised by a test suite. Achieving 80% statement coverage means that 80% of the executable code lines have been tested. This metric helps in understanding how much of the code has been covered during testing. However, it does not guarantee branch coverage, variable initialization, or detection of all possible defects. The ISTQB CTFL Syllabus v4.0 explains statement coverage as a measure of the extent to which the code has been tested, without implying other types of coverage or testing goals.
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"