CS FundamentalsHardInfosys · Cognizant

Assertion (A): A suite with 100% branch coverage can still miss a defect where a required check was never coded. Reason (R): White-box coverage is measured against the code that exists, so it cannot reveal missing functionality.

  1. A. A is true but R is false
  2. B. A is false but R is true
  3. C. Both A and R are true, but R does not explain A
  4. D. Both A and R are true and R explains A

Correct answer: D. Both A and R are true and R explains A

Errors of omission leave no branch to cover, so structural coverage cannot expose them; black-box tests derived from requirements can. R is exactly why A holds.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic