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?
- A. 24
- B. 40
- C. 32
- 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
- For how many 8-bit patterns x does there exist some rotation distance k with 1 ≤ k ≤ 7 such that rotating x left circularly by k bits…
- Let g(x) = x XOR (x >> 1) be the 8-bit binary-reflected Gray encoding. What is the smallest k ≥ 1 such that applying g k times returns…
- A bit string is a palindrome if it reads the same forwards and backwards. How many 8-bit palindromes and how many 9-bit palindromes…
- Let g(x) = x XOR (x >> 1) be the 8-bit Gray code of x. For how many x in 0..254 is g(x) equal to x + 1?
- For how many of the 256 ordered pairs of 4-bit two's complement numbers (a, b) does the exact product a·b fit in a 4-bit two's complement…
- 0.1 stored in IEEE 754 single precision (round to nearest) has the bit pattern 0x3DCCCCCD. Relative to the exact value 0.1, the stored…