GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A single 2:1 multiplexer (output = s ? b : a) has each of its three inputs connected to one of 0, 1, x, y, z (no complemented literals). How many distinct Boolean functions of x, y, z can it produce?

  1. A. 24
  2. B. 40
  3. C. 32
  4. D. 125

Correct answer: C. 32

Of the 5³ = 125 connections many give the same function. Enumerating all of them and removing duplicates leaves 32 distinct functions (the missing ones are those that need a complemented input, such as XOR, XNOR and NAND-type functions).

More Digital Logic questions

Exams that ask this topic