CS FundamentalsVery hardProduct company interview · GATE level

To estimate remaining defects, 20 artificial defects are seeded into a program. Testing then finds 15 of the seeded defects and 45 genuine ones. Assuming seeded and genuine defects are equally easy to find, how many genuine defects are estimated to remain?

  1. A. 60
  2. B. 15
  3. C. 5
  4. D. 45

Correct answer: B. 15

Testers found 15/20 = 75% of the seeded defects, so they are assumed to have found 75% of the genuine ones too: total genuine = 45 / 0.75 = 60, and 60 - 45 = 15 remain. 60 is the estimated total, not the remainder; 5 is the number of seeded defects still hidden. The estimate is only as good as the assumption that seeded defects resemble real ones.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic