Complete the code to calculate the defect density.
defect_density = total_defects / [1]Defect density is calculated as the number of defects divided by the total lines of code.
Complete the code to calculate the defect removal efficiency (DRE).
DRE = defects_removed_during_testing / [1]DRE is the ratio of defects removed during testing to the total defects (found before and after release).
Fix the error in the code to calculate the defect leakage rate.
defect_leakage = defects_found_in_production / [1]Defect leakage rate is defects found in production divided by total defects.
Fill both blanks to calculate the defect removal efficiency as a percentage.
DRE_percentage = ([1] / [2]) * 100
DRE percentage is defects removed during testing divided by total defects, multiplied by 100.
Fill all three blanks to calculate defect density per thousand lines of code.
defect_density = ([1] / [2]) * [3]
Defect density per KLOC is total defects divided by total lines of code, multiplied by 1000.