🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Unit Testing and TDD: all 10 questions

Quiz: Unit Testing and TDD · Question 7 of 10

A function has 100% statement coverage. What can you conclude?

A function has 100% statement coverage. What can you conclude?

  1. A.It has no bugs
  2. B.All boundary values were tested
  3. C.Every statement ran at least once during the tests — but bugs may remain
  4. D.Branch coverage is also 100%
Answer & explanation

Correct answer: Every statement ran at least once during the tests — but bugs may remain

Coverage shows what ran, not whether the checks were correct or complete.

Can you get the rest right without peeking?

Take the timed Quiz: Unit Testing and TDD quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →