CTFL4 practice question 24 of 25

Which of the following statements about statement coverage is TRUE?

Full set: 148 questions
Answer options
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. Correct answer
Correct Answer:
D. Achieving 80% statement coverage ensures that 80% of all executable statements within the code have been exercised.
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  .

Scroll to Top