White-box test techniques · Question 46 of 60

A test suite achieves 100% statement coverage but only 70% branch coverage. Which statements are possible?

2 answers are correct. Hard Created with AI

Show answer

Answer

  • A For at least one if decision without else only the true outcome was tested
  • B More tests for the missing decision outcomes increase branch coverage

Explanation

Full statement coverage with lower branch coverage is typical when an empty false branch was never exercised. Only 100% branch coverage implies 100% statement coverage, not vice versa.

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