GATE Computer ScienceVery hardGATE CS (PYQ pattern)

F = (A⊕B)(C⊕D) + (A⊕C)(B⊕D) + (A⊕D)(B⊕C). For which inputs is F = 1?

  1. A. An even number (including zero) of the inputs are 1
  2. B. Exactly one or exactly three of the inputs are 1
  3. C. At least two of the inputs are 1
  4. D. Exactly two of A, B, C, D are 1

Correct answer: D. Exactly two of A, B, C, D are 1

F = 1 on the six inputs of weight 2 (m3, m5, m6, m9, m10, m12). For weight 0 or 4 every XOR is 0; for weight 1 or 3 the pair that holds the three equal bits gives XOR 0 in each product.

More Digital Logic questions

Exams that ask this topic