WBJECA 2025 Computer PYQ — a software module contains 1500 lines of code and 15 defects were… | Mathem Solvex | Mathem Solvex
Tip:A–D to answerE for explanationV for videoS to reveal answer
WBJECA 2025 — Computer PYQ
WBJECA | Computer | 2025
a software module contains 1500 lines of code and 15 defects were found during testing. What is the defect density of the module?
Choose the correct answer:
A.
0.01 defects per KLOC
B.
1 defect per KLOC
C.
10 defects per KLOC
(Correct Answer)
D.
100 defects per KLOC
Correct Answer:
10 defects per KLOC
Explanation
Identify the given values:Total lines of code (LOC) = 1500Total number of defects = 15Convert lines of code to KLOC:Since 1 KLOC=1000 lines of code:KLOC=10001500=1.5 KLOCApply the Defect Density formula:DefectDensity=Size in KLOCTotal DefectsDefectDensity=1.515=10 defects per KLOC
Explanation
Identify the given values:Total lines of code (LOC) = 1500Total number of defects = 15Convert lines of code to KLOC:Since 1 KLOC=1000 lines of code:KLOC=10001500=1.5 KLOCApply the Defect Density formula:DefectDensity=Size in KLOCTotal DefectsDefectDensity=1.515=10 defects per KLOC