adplus-dvertising

Discussion Forum

Que. A program P calls two subprograms P1 and P2. P1 can fail 50% times and P2 40% times. Then P can fail
a. 50%
b. 60%
c. 10%
d. 70%
Answer:70%
Prathima :(December 02, 2020) Please explain clearly
Program P fails when either P1 fails or P2 fails, i.e. failure of P1 + failure of P2.

But this will also contain the case when both P1 and P2 fails at the same time, i.e. failure of P1 ∩ failure of P2, since this case will be already be counted on (P1+P2).

Therefore, our final answer will be failure of P1 + failure of P2 - (failure of P1 ∩ failure of P2)

= (50/100) + (40/100) -(50/100∗40/100)

= (90/100) - (2000/10000)

= (90/100) - (20/100)

= (70/100)
Click Here to Reply
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: