Propositional & Predicate Logic

Answer & solution
Official answer: B
1. Method and setup. Split on the truth value of r. When r is true, exactly one of p,q must be true, which is exclusive-or, the negation of equivalence. When r is false, both must be true. Combine these alternative cases with OR; AND would require r and ¬r simultaneously.
2. Work through the result and its assumptions. If r is true, exactly two true variables requires exactly one of p, q, namely NOT(p↔q). If r is false, both p and q must be true. The disjoint alternatives combine as[NOT(p↔q) AND r] OR[p AND q AND NOT r], B.