A student appears for tests I, II and III. The student is successful if he passes in tests I, II or I, III. The probabilities of the student passing in tests, I, II and III are respectively \(p, q\) and \(\frac{1}{2}\). If the probability of the student to be successful is \(\frac{1}{2}\). Then
(A) \(p(1+q)=1\)
(B) \(q(1+p)=1\)
(C) \(\mathrm{pq}=1\)
(D) \(\frac{1}{p}+\frac{1}{q}=1\)