CS FundamentalsHardTCS NQT · HCL

A module of 30,000 lines of code has 45 defects found in testing. What is the defect density?

  1. A. 15 defects per KLOC
  2. B. 0.15 defects per KLOC
  3. C. 1.5 defects per KLOC
  4. D. 0.67 defects per KLOC

Correct answer: C. 1.5 defects per KLOC

30,000 LOC = 30 KLOC; 45/30 = 1.5 defects per KLOC.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic