GATE / CS ARCHIVE

GATE CSE 2007 / QUESTION 3

Counting Boolean functions

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 2007 paper

GATE 2007, Q3 1 mark · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 3, GATE 2007: What is the maximum number of different Boolean functions on n Boolean variables?
Options:
(A) n²
(B) 2^n
(C) 2^(2^n)
(D) 2^(n²)
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Approach. First count truth-table rows, not functions. A truth table has 2n rows; choosing an output bit independently for every row determines one function.

2. Derivation and interpretation. There are 2n input assignments. Each can independently be assigned output 0 or 1, giving 22^n distinct Boolean functions, C. This counts functions on n variables, including those independent of some variables.

Original paper, page 2