Answer
a)0.94
b)0.085
Work Step by Step
a) We know that $probability=\frac{number \ of \ good \ outcomes}{number\ of\ all\ outcomes}$, hence $probability=\frac{1021-61}{1021}=0.94.$
b)Two events are dependent, if the outcome of one effects the outcome of the other. Here the events are independent, because the sampling was done with replacement, also $probability=\frac{number \ of \ good \ outcomes}{number\ of\ all\ outcomes}$, hence $probability=\left (\frac{1021-61}{1021}\right )^{40}=0.085.$