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?
- A. 0.55
- B. 0.75
- C. 0.65
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A function divides by (x - 7). Black-box tests from equivalence partitioning used x = 3, 50 and -10 and all passed. Which additional…
- A web form's 'Date of birth' accepts dates from 1 Jan 1950 to 31 Dec 2005 inclusive. Using two-value boundary value analysis, which dates…
- A control-flow graph has nodes 1-8 and edges 1→2; 2→3, 2→4, 2→5 (a switch); 3→6; 4→6; 5→6; 6→7, 6→8; 7→2 (loop back); node 8 is the exit…
- A UML class diagram shows Order with a filled (black) diamond connected to OrderLine with multiplicity 1.. on the OrderLine end. Which…
- In an ATM use-case diagram, 'Withdraw Cash' always performs 'Authenticate User', while 'Print Receipt' happens only when the customer asks…
- In a UML sequence diagram, how are a synchronous call, an asynchronous message and a return message usually drawn?