Question
Consider the following combinational function block involving four Boolean variables where are inputs and is the output.
f (x, y, a, b)
{
if (x is 1) y = a;
else y = b;
}
Which one of the following digital logic blocks is the most suitable for implementing this function?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2014 answer key
Solution
Identify the logic function as selecting between two input data lines based on a single control line.
-
The function pseudocode is:
if (x is 1) y = a; else y = b; -
Expressed as a Boolean logic equation:
-
This Boolean function takes:
- A selection/control input
- Two data inputs and
- A single data output
-
This matches the standard definition and architecture of a 2-to-1 Multiplexor (MUX).
Hence, a Multiplexor is the most suitable digital block (option C).
C
Confusing a multiplexor with a priority encoder, which encodes active input lines into binary codes rather than routing data.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 3
- Question
- 18 of 65, printed as CS Q.8
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.