Answer:
Step-by-step explanation:
a( Pr(no syntax error) = 1-Pr(syntax error arises)
Pr(no syntax error) = 1 -0.3
Pr(no syntax error) = 0.7
b) Pr(no error occurred) = 1-Pr(both error occurred)
Pr(no error occurred) = 1-0.1
Pr(no error occurred) = 0.9
c) Pr(any type of error occurred) = Pr(syntax error occur)+Pr(logical)
Pr(any type of error occurred) = 0.5+0.3 = 0.8
d) Pr(syntax and logical) = Pr(syntax occur)+Pr(logical or syntax occur)
= 0.3+0.1
= 0.4
e) Independent event are events that occurs at the same time. The occurrence of one does not affect the other.
Pr(logical and syntax) = pr(syntax)×pr(logical)
Given
pr(syntax)×pr(logical) = 0.3×0.5 = 0.15
From the question, Pr(logical and syntax) = Pr(both error occurred) = 0.1
Since Pr(logical and syntax) ≠ pr(syntax)×pr(logical), this means that the errors are not independent