Sample questions
Question 1Easy
Defect density is calculated as:
- Number of tests divided by number of testers before coding starts
- Number of defects divided by size of the software (e.g. KLOC)
- Time taken divided by defects
- Defects multiplied by severity only
Answer: B. Number of defects divided by size of the software (e.g. KLOC)
Explanation
It normalises defects by size to compare modules.
Step-by-step solution
- Defect density measures how many defects a piece of software has per unit of size.
- The size is often given in KLOC, thousands of lines of code.
- So density = number of defects ÷ size.
- The answer is option B.
Why the other options are wrong
- A. Tests per tester is not a density measure of defects.
- C. Time divided by defects does not measure defects per size.
- D. Multiplying defects by severity gives a weighted score, not a density.
Tip: Defect density = defects ÷ size (for example per KLOC).
Question 2Easy
What is a requirements traceability matrix (RTM) used for?
- Mapping requirements to tests to show coverage
- Listing the holidays of the team
- Tracking the uptime of the server
- Recording the invoice amounts paid
Answer: A. Mapping requirements to tests to show coverage
Explanation
RTM links each requirement to tests so gaps in coverage are visible.
Step-by-step solution
- Requirement to test.
- See coverage.
- RTM.
Why the other options are wrong
- B. Not related.
- C. Not related.
- D. Not related.
Question 3Medium
Out of 200 test cases planned, 150 were executed and 135 passed. What is the pass percentage of executed tests?
- 67.5%
- 90%
- 75%
- 70%
Answer: B. 90%
Explanation
Pass rate of executed tests = 135 / 150 = 90%. The 75% figure is execution progress.
Step-by-step solution
- Executed = 150.
- Passed = 135.
- 135/150 = 90%.
Why the other options are wrong
- A. 67.5% is 135/200.
- C. 75% is 150/200.
- D. 70% has no basis.
Question 4Medium
Which statement about code coverage is correct?
- 100% coverage proves that the software is bug free
- Coverage is a measure of user satisfaction
- Coverage is identical to requirements traceability
- High coverage shows code ran, not that results are checked
Answer: D. High coverage shows code ran, not that results are checked
Explanation
Coverage reports execution, so weak assertions can still hide defects.
Step-by-step solution
- Execution only.
- Assertions matter.
- Coverage is not proof.
Why the other options are wrong
- A. Coverage cannot prove absence of defects.
- B. User satisfaction is another measure.
- C. Traceability maps requirements to tests.
Question 5Medium
Requirements traceability matrix is used to:
- Measure CPU usage
- Map requirements to test cases to ensure coverage
- Track developer salaries in every release on every build
- Compile the source
Answer: B. Map requirements to test cases to ensure coverage
Explanation
It shows which requirements are covered by tests.
Step-by-step solution
- A requirements traceability matrix links each requirement to its test cases.
- It shows which requirements are covered by tests.
- So it is used to check test coverage of the requirements.
- The answer is option B.
Why the other options are wrong
- A. CPU usage is a performance metric, not a traceability matrix.
- C. Developer salaries are not tracked in a traceability matrix.
- D. Compiling source is the job of a compiler.
Tip: A traceability matrix maps each requirement to the tests that cover it, to show gaps.
Question 6Medium
Testing finds 90 defects before release and users find 10 after release. What is the Defect Removal Efficiency (DRE)?
- 90%
- 10%
- 80%
- 9%
Answer: A. 90%
Explanation
DRE = defects found before release / total = 90 / (90 + 10) = 90%.
Step-by-step solution
- Before = 90.
- Total = 100.
- 90%.
Why the other options are wrong
- B. 10% is the leakage.
- C. 80% uses 90 - 10.
- D. 9% is the ratio 9/100.
Question 7Medium
A module has 400 lines (0.4 KLOC) and 8 defects. What is the defect density per KLOC?
- 8
- 50
- 3200
- 20
Answer: D. 20
Explanation
Defect density = defects / size = 8 / 0.4 = 20 per KLOC.
Step-by-step solution
- Defects = 8.
- Size = 0.4 KLOC.
- 8/0.4 = 20.
Why the other options are wrong
- A. 8 is the count.
- B. 50 is 400/8.
- C. 3200 multiplies instead of dividing.
Question 8Medium
What is test execution progress if 150 of 200 planned tests have been run?
- 90%
- 25%
- 150%
- 75%
Answer: D. 75%
Explanation
150 / 200 x 100 = 75%.
Step-by-step solution
- Run = 150.
- Planned = 200.
- 75%.
Why the other options are wrong
- A. 90% would be a pass rate.
- B. 25% is the remaining share.
- C. Cannot exceed 100% here.
Question 9Hard
Out of 40 requirements, 34 have at least one test. What is the requirement coverage, and what does it mean if a requirement has zero tests?
- 34%; it has been tested elsewhere
- 85%; that requirement is untested
- 85%; it needs no test
- 15%; it has passed
Answer: B. 85%; that requirement is untested
Explanation
Coverage = 34 / 40 = 85%. A requirement with no tests is a coverage gap.
Step-by-step solution
- 34/40.
- 85%.
- Zero tests means a gap.
Why the other options are wrong
- A. 34 is the count, not the percentage.
- C. Every requirement needs a test.
- D. 15% is the uncovered share.
Question 10Hard
Testers find 45 defects and customers later report 5 more. What is the defect detection percentage of the test team?
- 90%
- 10%
- 45%
- 111%
Answer: A. 90%
Explanation
45 / (45 + 5) x 100 = 90%.
Step-by-step solution
- Defect detection percentage = defects found by testers ÷ (found by testers + found later by customers) × 100.
- 45 ÷ (45 + 5) = 45 ÷ 50 = 0.9.
- 0.9 × 100 = 90%.
- So the answer is option A, 90%.
Why the other options are wrong
- B. 10% is the share found by customers, not by testers.
- C. 45% is the raw count of testers' finds, not a share of all the defects found.
- D. 111% is above 100%, and 45 ÷ 40 is not the formula.
Tip: Detection % = testers' finds ÷ all defects found, including those customers report later.
Practise all 13 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →