Question
The binary operator is defined by the following truth table:
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Which one of the following is true about the binary operator ?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2015 answer key
Solution
Identify the binary truth table as the exclusive-OR (XOR) operator and verify its algebraic properties.
From the given truth table:
This is the truth table of the Exclusive-OR (XOR, ) operation.
Properties of XOR:
- Commutativity: holds for all Boolean values.
- Associativity: holds because XOR corresponds to addition modulo 2, which is associative.
Therefore, the operator is both commutative and associative (option A).
A
Confusing XOR with implication or NAND, which are not 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 1
- Question
- 38 of 65, printed as CS Q.28
- 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.