First, remember that a Boolean expression is called a tautology if it is always true, no matter whether the simple propositions p and q are true (T) or false (F). To decide which option is a tautology, we shall simplify every given expression algebraically, employing these standard Boolean laws:
(1) Distributive law:(2) Distributive law:(3) Complement law:(4) Identity law:(5) Domination law:a∧(b∨c)=(a∧b)∨(a∧c),a∨(b∧c)=(a∨b)∧(a∨c),a∨¬a=T,a∧¬a=F,a∨F=a,a∧T=a,a∨T=T,a∧F=F.
Now we analyse each option one by one.
Option A: (p∨q)∧(¬p∨¬q)
We notice that ¬p∨¬q is the negation of p∧q by De Morgan’s law, so we may write
(p∨q)∧¬(p∧q).
This is exactly the exclusive-or (“one but not both”) condition. For example, if both p and q are true, then p∧q is true, its negation is false, and the whole expression becomes false. Hence Option A is not always true, so it is not a tautology.
Option B: (p∧q)∨(p∧¬q)
We factor out the common literal p using the distributive law (1):
(p∧q)∨(p∧¬q)=p∧(q∨¬q).
By the complement law (3), q∨¬q=T, so
p∧T=p.
Since p can be true or false, the whole expression can also be true or false; therefore it is not a tautology.
Option C: (p∨q)∧(p∨¬q)
Here we use the distributive law (2) in reverse, pulling out the common literal p∨:
(p∨q)∧(p∨¬q)=p∨(q∧¬q).
Again by the complement law (3), q∧¬q=F, so we get
p∨F=p.
This reduces to the single variable p, which is not always true, so Option C is also not a tautology.
Option D: (p∨q)∨(¬p∨¬q)
Using associativity and commutativity of ∨, we simply collect all the literals:
(p∨q)∨(¬p∨¬q)=p∨¬p∨q∨¬q.
Now group the complementary pairs:
p∨¬p=T,q∨¬q=T.
So the entire expression becomes
T∨T=T,
which is true for every possible truth‐value combination of p and q. Therefore Option D is a tautology.
After examining all four choices, we see that only Option 4 (that is, Option D) is always true.
Hence, the correct answer is Option 4.