GATE Computer ScienceVery hardGATE CS (PYQ pattern)

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

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

Correct answer: B. 12

Listing all 64 choices of (s, x, y) gives 12 distinct functions: 0, 1, a, b, a' (as a ? 0 : 1), b', ab, a + b, a'b, ab', a' + b and a + b'. Only the four functions XOR, XNOR, NAND and NOR cannot be made with one multiplexer.

More Digital Logic questions

Exams that ask this topic