GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A three-input majority gate has each input connected to one of 0, 1, x, y, z, x', y' or z'. How many distinct Boolean functions of x, y, z can the single gate produce?

  1. A. 56
  2. B. 64
  3. C. 24
  4. D. 40

Correct answer: D. 40

Enumerating all 8³ input connections and removing duplicates leaves 40 distinct functions: for example the 8 literals and constants, AND/OR of two literals (like xy' and x + y'), and genuine majorities such as MAJ(x, y, z') and MAJ(x, y', z').

More Digital Logic questions

Exams that ask this topic