Istqb Certified Tester Foundation Level CTFL · Free Practice Question Easy
Question 57
What is a branch in the context of Branch Testing and Branch Coverage?
-
A
A conditional decision in a loop
-
B
A transfer of control between two nodes in the control flow graph
-
C
An unconditional straight-line code
-
D
A sequence of executed source code statements
Reveal correct answer
Correct answer: B
Explanation
In the context of Branch Testing and Branch Coverageِِ
A branch refers to a point in the control flow graph where control can transfer from one part of the code to another, typically as a result of a conditional statement (such as if, case, or switch).
Branch Testing aims to ensure that each of these branches is executed at least once to verify that all possible paths are tested.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
