CTFL_SYLL_4.0 · Question #4
Which of the following statements about branch coverage is true?
The correct answer is D. Exercising at least one of the decision outcomes for all decisions within the code, ensures. Exercising at least one of the decision outcomes for all decisions within the code, ensures achieving full branch coverage, which is a test coverage criterion that requires that all branches in the control flow of the code are executed at least once by the test cases. A branch…
Question
Which of the following statements about branch coverage is true?
Options
- AThe minimum number of test cases needed to achieve full branch coverage, is usually lower than
- BIf full branch coverage has been achieved, then all unconditional branches within the code have
- CIf full branch coverage has been achieved, then all combinations of conditions in a decision table
- DExercising at least one of the decision outcomes for all decisions within the code, ensures
How the community answered
(38 responses)- A8% (3)
- B5% (2)
- C3% (1)
- D84% (32)
Explanation
Exercising at least one of the decision outcomes for all decisions within the code, ensures achieving full branch coverage, which is a test coverage criterion that requires that all branches in the control flow of the code are executed at least once by the test cases. A branch is a basic block of code that has a single entry point and a single exit point, and a decision is a point in the code where the control flow can take more than one direction, such as an if-then-else statement, a switch-case statement, a loop statement, etc. The decision outcomes are the possible paths that can be taken from a decision, such as the then branch or the else branch, the case branch or the default branch, the loop body or the loop exit, etc.
Topics
Community Discussion
No community discussion yet for this question.