ExamGecko
Question list
Search
Search

Related questions











Question 180 - CTFL-2018 discussion

Report
Export

One of the exit criteria for a SW project was defined as '80% statement coverage'.

A test manager submitted the following report:

'We did not measure the statement coverage. However, we ensured 80% branch coverage, therefore the exit criteria was met'.

Is the test manager right?

A.
No There is not direct relationship 80% branch coverage does not guarantee 80% statement coverage
Answers
A.
No There is not direct relationship 80% branch coverage does not guarantee 80% statement coverage
B.
Yes. 50% branch coverage guarantees 100% statement coverage. With 80% branch coverage, the exit criteria is easily met.
Answers
B.
Yes. 50% branch coverage guarantees 100% statement coverage. With 80% branch coverage, the exit criteria is easily met.
C.
No. The relation works the other way: 80% statement coverage guarantees 80% branch coverage
Answers
C.
No. The relation works the other way: 80% statement coverage guarantees 80% branch coverage
D.
Yes Coverage of 80% of the branches in the control flow guarantees 80% statement coverage
Answers
D.
Yes Coverage of 80% of the branches in the control flow guarantees 80% statement coverage
Suggested answer: A

Explanation:

The test manager is not right because there is no direct relationship between branch coverage and statement coverage. Branch coverage measures how many branches in the control flow have been executed by a set of test cases, while statement coverage measures how many statements in the code have been executed by a set of test cases. It is possible to achieve high branch coverage without achieving high statement coverage, if some statements are not part of any branch condition or are not reachable by any test case.

asked 18/09/2024
Andrea Di Giuseppe
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first