Probability of getting an error in a program out of five programs
Now, three programs are selected randomly
Required probability that is Expectation E(x)
=1 ×Error in first one and No error in last two +2×Error in Second one and No error in first and last +3×Error in Third one and No error first and Second one