Multiple choice

The XOR operator is

  1. associative and commutative

  2. distributive over AND operator

  3. both (1) and (2)

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

XOR is associative: (A ⊕ B) ⊕ C = A ⊕ (B ⊕ C). XOR is commutative: A ⊕ B = B ⊕ A. However, XOR is NOT distributive over AND - A ⊕ (B·C) ≠ (A ⊕ B)·(A ⊕ C). Therefore only statement (1) is correct.