Test Metrics Questions with Answers

13 practice questions on Test Metrics (Software Testing & QA) with answers and step-by-step solutions. Try 10 samples below, then practise all 13 free in the AptiNest app.

Sample questions

Question 1Easy

Defect density is calculated as:

  1. Number of tests divided by number of testers before coding starts
  2. Number of defects divided by size of the software (e.g. KLOC)
  3. Time taken divided by defects
  4. 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

  1. Defect density measures how many defects a piece of software has per unit of size.
  2. The size is often given in KLOC, thousands of lines of code.
  3. So density = number of defects ÷ size.
  4. 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?

  1. Mapping requirements to tests to show coverage
  2. Listing the holidays of the team
  3. Tracking the uptime of the server
  4. 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

  1. Requirement to test.
  2. See coverage.
  3. 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?

  1. 67.5%
  2. 90%
  3. 75%
  4. 70%

Answer: B. 90%

Explanation

Pass rate of executed tests = 135 / 150 = 90%. The 75% figure is execution progress.

Step-by-step solution

  1. Executed = 150.
  2. Passed = 135.
  3. 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?

  1. 100% coverage proves that the software is bug free
  2. Coverage is a measure of user satisfaction
  3. Coverage is identical to requirements traceability
  4. 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

  1. Execution only.
  2. Assertions matter.
  3. 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:

  1. Measure CPU usage
  2. Map requirements to test cases to ensure coverage
  3. Track developer salaries in every release on every build
  4. 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

  1. A requirements traceability matrix links each requirement to its test cases.
  2. It shows which requirements are covered by tests.
  3. So it is used to check test coverage of the requirements.
  4. 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)?

  1. 90%
  2. 10%
  3. 80%
  4. 9%

Answer: A. 90%

Explanation

DRE = defects found before release / total = 90 / (90 + 10) = 90%.

Step-by-step solution

  1. Before = 90.
  2. Total = 100.
  3. 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?

  1. 8
  2. 50
  3. 3200
  4. 20

Answer: D. 20

Explanation

Defect density = defects / size = 8 / 0.4 = 20 per KLOC.

Step-by-step solution

  1. Defects = 8.
  2. Size = 0.4 KLOC.
  3. 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?

  1. 90%
  2. 25%
  3. 150%
  4. 75%

Answer: D. 75%

Explanation

150 / 200 x 100 = 75%.

Step-by-step solution

  1. Run = 150.
  2. Planned = 200.
  3. 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?

  1. 34%; it has been tested elsewhere
  2. 85%; that requirement is untested
  3. 85%; it needs no test
  4. 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

  1. 34/40.
  2. 85%.
  3. 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?

  1. 90%
  2. 10%
  3. 45%
  4. 111%

Answer: A. 90%

Explanation

45 / (45 + 5) x 100 = 90%.

Step-by-step solution

  1. Defect detection percentage = defects found by testers ÷ (found by testers + found later by customers) × 100.
  2. 45 ÷ (45 + 5) = 45 ÷ 50 = 0.9.
  3. 0.9 × 100 = 90%.
  4. 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 →

Related topics

See all Software Testing & QA topics · All topics