GATE Computer ScienceModerateGATE CS (PYQ pattern)

How many of the 32 input combinations make F(A,B,C,D,E) = (A ⊕ B)(B ⊕ C) + (C ⊕ D)(D ⊕ E) equal to 1?

  1. A. 16
  2. B. 15
  3. C. 12
  4. D. 14

Correct answer: D. 14

Each product is 1 for 2 × 4 = 8 inputs (ABC = 010/101 with D, E free; or CDE = 010/101). Both are 1 when ABCDE alternates, 01010 or 10101: 2 cases. Inclusion-exclusion: 8 + 8 − 2 = 14.

More Digital Logic questions

Exams that ask this topic