White-box test techniques · Question 42 of 60

For the same function with the two independent decisions without else branches, 100% branch coverage is to be achieved. What is the minimum number of test cases?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • B 2

Explanation

Each decision needs a true and a false outcome. One test with both true and one with both false cover all branches.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications