0
0
Testing Fundamentalstesting~10 mins

Defect metrics in Testing Fundamentals - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to calculate the defect density.

Testing Fundamentals
defect_density = total_defects / [1]
Drag options to blanks, or click blank then click option'
Atotal_lines_of_code
Btotal_test_cases
Ctotal_modules
Dtotal_testers
Attempts:
3 left
💡 Hint
Common Mistakes
Using total_test_cases instead of total_lines_of_code
Dividing by total_modules which is unrelated
2fill in blank
medium

Complete the code to calculate the defect removal efficiency (DRE).

Testing Fundamentals
DRE = defects_removed_during_testing / [1]
Drag options to blanks, or click blank then click option'
Atotal_defects_found
Bdefects_removed_after_release
Cdefects_found_in_production
Dtotal_defects
Attempts:
3 left
💡 Hint
Common Mistakes
Using only defects found during testing as denominator
Using defects found in production only
3fill in blank
hard

Fix the error in the code to calculate the defect leakage rate.

Testing Fundamentals
defect_leakage = defects_found_in_production / [1]
Drag options to blanks, or click blank then click option'
Adefects_found_during_testing
Btotal_defects
Cdefects_found_in_production
Ddefects_removed_during_testing
Attempts:
3 left
💡 Hint
Common Mistakes
Dividing by defects found during testing only
Dividing by defects found in production (same numerator and denominator)
4fill in blank
hard

Fill both blanks to calculate the defect removal efficiency as a percentage.

Testing Fundamentals
DRE_percentage = ([1] / [2]) * 100
Drag options to blanks, or click blank then click option'
Adefects_removed_during_testing
Btotal_defects
Cdefects_found_in_production
Ddefects_removed_after_release
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping numerator and denominator
Using defects found in production as numerator
5fill in blank
hard

Fill all three blanks to calculate defect density per thousand lines of code.

Testing Fundamentals
defect_density = ([1] / [2]) * [3]
Drag options to blanks, or click blank then click option'
Atotal_defects
Btotal_lines_of_code
C1000
D100
Attempts:
3 left
💡 Hint
Common Mistakes
Multiplying by 100 instead of 1000
Swapping numerator and denominator