ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 224 - CTFL4 discussion

Report
Export

Which of the following statements about statement coverage is TRUE?

A.
Achieving 90% statement coverage ensures that 90% branch coverage is achieved.
Answers
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.
Answers
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
Answers
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.
Answers
D.
Achieving 80% statement coverage ensures that 80% of all executable statements within the code have been exercised.
Suggested answer: D

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.

asked 18/09/2024
corey shields
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first