Step 1: Truth table idea
The first bracket is true only when $p$ is true and $q$ is false. The second part $\sim (p\leftrightarrow q)$ is true whenever $p$ and $q$ have different truth values.
Step 2: Combine the cases
The first bracket is already contained in the case where $p$ and $q$ differ, so the OR of the two is true exactly when $p$ and $q$ differ.
Step 3: Match the option
'Exactly one of $p,q$ is true' is written as $(p\vee q)\wedge \sim (p\wedge q)$; the other options are true for different rows (for example $p\wedge q$ is true when both are true).
Final Answer:
Both the expression and $(p\vee q)\wedge \sim (p\wedge q)$ are true only when $p$ and $q$ differ.
\[ \boxed{\text{(B) }(p\vee q)\wedge \sim (p\wedge q)} \]