GATE Computer ScienceEasyGATE CS (PYQ pattern)

A Boolean function f(x, y, z) satisfies f(x, y, z) = f(y, x, z) for all inputs. How many such functions exist?

  1. A. 32
  2. B. 128
  3. C. 64
  4. D. 16

Correct answer: C. 64

The value is determined by the unordered pair of (x, y) and z: there are 3 × 2 = 6 classes of inputs (xy ∈ {00, 01~10, 11} and z), so 2⁶ = 64 functions.

More Discrete Mathematics questions

Exams that ask this topic