GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A single 4:1 multiplexer has select inputs S1 = A and S0 = B. Each of its four data inputs is connected to one of 0, 1, A, B or C (no complements, no other gates). How many distinct Boolean functions of A, B, C can it produce?

  1. A. 625
  2. B. 81
  3. C. 256
  4. D. 125

Correct answer: B. 81

Data input I_k is seen only when AB = k, so A and B are constants there: connecting A or B just gives 0 or 1. Each input therefore effectively chooses from {0, 1, C}, and different choices give different functions: 3⁴ = 81. 5⁴ = 625 counts wirings, not functions; 256 would need C' too.

More Digital Logic questions

Exams that ask this topic