Software-Engineering
August 28, 2024Software-quality
August 28, 2024Software-Engineering
|
Question 345
|
A program p calls two subprograms P1 and P2. P1 can fail 50% time and P2 can fail 40% times. The program P can fail
|
50%
|
|
|
10%
|
|
|
60%
|
|
|
70%
|
Question 345 Explanation:
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)

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)

Correct Answer: D
Question 345 Explanation:
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)

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)

