CS FundamentalsVery hardProduct-company placement · GATE CS

A test suite of 5 tests detects 4 faults. The fault-revealing positions in the execution order are: fault 1 by test 1, fault 2 by test 2, fault 3 by test 2, fault 4 by test 4. Using APFD = 1 - (sum of first-detection positions)/(n x m) + 1/(2n), with n tests and m faults, what is the APFD of this order?

  1. A. 0.55
  2. B. 0.75
  3. C. 0.65
  4. D. 0.45

Correct answer: C. 0.65

Sum of positions = 1 + 2 + 2 + 4 = 9, n = 5, m = 4: APFD = 1 - 9/20 + 1/10 = 0.65. Forgetting the + 1/(2n) term gives 0.55. Higher APFD means faults are found earlier in the run.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic