Question
Which one of the following propositional logic formulas is TRUE when exactly two of , , and are TRUE?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2014 answer key
Solution
Construct the truth condition for 'exactly two of p, q, and r are true' and verify against the logical formula.
There are 3 truth assignments where exactly two of are TRUE:
Consider the formula in Option B:
Let us analyze both terms:
- The term is TRUE if and only if (Case 1).
- The term requires and .
The condition is equivalent to (one is true, one is false).
Along with , this holds if and only if:
or (Cases 2 and 3).
The disjunction of the two terms is therefore TRUE in exactly Cases 1, 2, and 3, and FALSE in all other five truth assignments.
Thus, formula B is TRUE when exactly two of are TRUE.
B
Selecting option A where is satisfied when , meaning all three are true rather than exactly two.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 1
- Question
- 63 of 65, printed as CS Q.53
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.