Step 1: Check each truth combination
Evaluate $(p\vee \sim q)\wedge(\sim p\vee q)$ for all four cases.
$p=T,q=T$: $T\wedge T=T$.
$p=T,q=F$: $T\wedge F=F$.
$p=F,q=T$: $F\wedge T=F$.
$p=F,q=F$: $T\wedge T=T$.
Step 2: Read the result
The pattern is true exactly in the cases $TT$ and $FF$, where $p$ and $q$ agree.
Step 3: Eliminate options
The cases $p=T,q=F$ and $p=F,q=T$ make the pattern false. Also $p\rightarrow \sim q$ is false for $TT$ but true for $FF$, so it is not a contradiction.
Final Answer:
So p and q must have the same truth value.
\[ \boxed{\text{(B) }\text{both }p\text{ and }q\text{ have the same truth value}} \]