Branch Coverage is

  1. Another name for decision coverage

  2. Another name for all-edges coverage

  3. Another name for basic path coverage

  4. All the above


Correct Option: C

AI Explanation

To answer this question, we need to understand the concept of branch coverage.

Branch coverage is a measure of how many branches in the code have been executed during testing. A branch is a control flow statement, such as an if statement or a loop, that can have multiple possible paths of execution. Branch coverage aims to ensure that each possible branch is executed at least once during testing.

Now let's go through each option to understand why they are correct or incorrect:

Option A) Another name for decision coverage - This option is incorrect because decision coverage is a different concept. Decision coverage focuses on ensuring that all possible outcomes of each decision point in the code are tested.

Option B) Another name for all-edges coverage - This option is incorrect because all-edges coverage is also a different concept. All-edges coverage aims to ensure that all possible edges in the control flow graph of the code are exercised during testing.

Option C) Another name for basic path coverage - This option is correct because branch coverage is also known as basic path coverage. Basic path coverage ensures that all possible paths through the code, including every branch, are executed at least once during testing.

Option D) All the above - This option is incorrect because option A and B are incorrect. Therefore, all the above options are not correct.

The correct answer is C) Another name for basic path coverage. This option is correct because branch coverage is also known as basic path coverage, which aims to ensure that all possible paths through the code, including every branch, are executed at least once during testing.

Find more quizzes: