Let's analyze each component of the given options based on the condition that exactly two of p,q,r are TRUE.
Case 1: Exactly two of p,q,r are TRUE.
Possible scenarios: (p=T,q=T,r=F), (p=T,q=F,r=T), (p=F,q=T,r=T).
Consider the term p↔q:
- If (p=T,q=T,r=F), then p↔q is TRUE.
- If (p=T,q=F,r=T), then p↔q is FALSE.
- If (p=F,q=T,r=T), then p↔q is FALSE.
Consider the term p∧q∧∼r:
- If (p=T,q=T,r=F), then p∧q∧∼r is TRUE.
- If (p=T,q=F,r=T), then p∧q∧∼r is FALSE.
- If (p=F,q=T,r=T), then p∧q∧∼r is FALSE.
Now let's evaluate Option B: (∼(p↔q)∧r)∨(p∧q∧∼r)
- If (p=T,q=T,r=F): (∼T∧F)∨(T∧T∧T)=(F∧F)∨T=F∨T=T.
- If (p=T,q=F,r=T): (∼F∧T)∨(T∧F∧F)=(T∧T)∨F=T∨F=T.
- If (p=F,q=T,r=T): (∼F∧T)∨(F∧T∧F)=(T∧T)∨F=T∨F=T.
Since Option B evaluates to TRUE for all scenarios where exactly two of p,q,r are TRUE, it is the correct answer.
The other options can be discarded as they do not hold TRUE for all these scenarios. For instance, Option A fails for (p=T,q=F,r=T), and Option D is an AND of two terms which cannot be simultaneously true.