Software-Engineering
August 28, 2024
Software-quality
August 28, 2024
Software-Engineering
August 28, 2024
Software-quality
August 28, 2024

Software-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
A
50%
B
10%
C
60%
D
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)
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)

Leave a Reply

Your email address will not be published. Required fields are marked *