0
0
Testing Fundamentalstesting~5 mins

Defect density and detection rate in Testing Fundamentals - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is defect density in software testing?
Defect density is the number of defects found in a software module divided by the size of that module, usually measured in lines of code or function points. It helps measure software quality.
Click to reveal answer
beginner
How do you calculate detection rate in testing?
Detection rate is calculated by dividing the number of defects found during testing by the total number of defects (found plus those found later). It shows how effective testing is at finding bugs.
Click to reveal answer
intermediate
Why is defect density useful for project managers?
Defect density helps project managers understand which parts of the software are more error-prone and may need more attention or testing effort.
Click to reveal answer
intermediate
What does a high detection rate indicate about a testing process?
A high detection rate means the testing process is good at finding defects before the software is released, reducing the chance of bugs reaching users.
Click to reveal answer
beginner
If a module has 10 defects and 2000 lines of code, what is its defect density?
Defect density = Number of defects / Size of module = 10 / 2000 = 0.005 defects per line of code.
Click to reveal answer
What does defect density measure?
ANumber of defects per size of software
BNumber of test cases executed
CTime taken to fix defects
DNumber of users reporting bugs
Detection rate is best described as:
ADefects found during testing divided by total defects
BTotal defects divided by defects found during testing
CNumber of test cases passed
DTime spent testing
A low defect density means:
ASoftware has many defects
BSoftware has fewer defects per size
CTesting was not done
DSoftware is very large
If detection rate is 100%, it means:
ADefects were found after release
BNo defects were found
CAll defects were found during testing
DTesting was skipped
Which metric helps decide where to focus testing effort?
ACode coverage
BDetection rate
CTest case count
DDefect density
Explain defect density and why it is important in software testing.
Think about defects per size of software and what it tells us.
You got /3 concepts.
    Describe detection rate and how it helps improve the testing process.
    Consider how many defects testing finds compared to total defects.
    You got /3 concepts.