If a program P calls two subprograms P1 and P2 and P1 can fail 50% of the time…
2013
If a program P calls two subprograms P1 and P2 and P1 can fail 50% of the time and P2 can fail 40% of the time, what is the failure rate of program P
- A.
50%
- B.
60%
- C.
70%
- D.
10%
Attempted by 9 students.
Show answer & explanation
Correct answer: C
Program P fails if either subprogram P1 or P2 fails. First, calculate the success rates: P1 succeeds 50% of the time (1 - 0.5), and P2 succeeds 60% of the time (1 - 0.4). Assuming independence, the probability that both succeed is 0.5 × 0.6 = 0.3 or 30%. Therefore, the failure rate of program P is 1 - 0.3 = 0.7 or 70%.