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 XOR B) XOR C = A XOR (B XOR C). It is also commutative: A XOR B = B XOR A. However, XOR is NOT distributive over AND.