I feel the answer is right but explanation for option (A) is wrong in selected answer.
Just think what does ”q if p” sentence format say in propositional logic. It means p->q. If you see it’s truth table,it means when ‘p’ is true , ‘q’ should be compulsorily TRUE.But when ‘p’ is false , ‘q’ can assume any value.
→ Now here ‘p’=”EXACTLY TWO OF p,q,r are TRUE.”
→ ‘q’ = “Given option is right”.
(A) is wrong bcoz when ‘q’ and ‘r’ are TRUE and ‘p’ is false , it assumes FALSE value, which shouldn’t happen as discussed above.
(B) is right .
(C) and (D) are false for same reason as (A)