Question
Let be a binary operator defined as
where and are Boolean variables.
Consider the following two statements.
(S1)
(S2)
Which of the following is/are true for the Boolean variables , and ?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2015 answer key
Solution
Express the binary operator # in terms of standard Boolean logic operations and check commutativity and associativity.
The binary operator is defined as .
By De Morgan's laws, , which is the Boolean NAND operation.
Evaluate Statement (S2):
.
Since Boolean conjunction is commutative, the NAND operator is commutative. Thus, statement (S2) is true.
Evaluate Statement (S1):
Test with truth values :
- Left-hand side: .
- Right-hand side: .
Since , . Thus, statement (S1) is false.
Hence, only statement S2 is true (Option B).
B
Assuming that symmetrical operator definitions guarantee associativity, whereas NAND is strictly non-associative.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 3
- Question
- 12 of 65, printed as CS Q.2
- 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.