The binary operator is defined by the following truth table.
Which one of the following is true about the binary operator ?
View worked solution
Answer: A
The given truth table defines the standard Exclusive-OR (XOR) operator, commonly denoted as . Let us analyze its properties:
1. Commutativity
An operator is commutative if for all possible values of and .
- and
- and
Since the output is symmetric with respect to the inputs, the operator is commutative.
2. Associativity
An operator is associative if for all .
Since this operator is equivalent to the logical XOR (), we can verify associativity algebraically or by evaluating the truth values:
- For :
- For :
In general, is if and only if an odd number of variables are . Since this condition is symmetric for any grouping, the operator is associative.
Therefore, the binary operator is both commutative and associative.
Free practice · Your answers on this page are not saved.
