Question

Consider the following combinational function block involving four Boolean variables x,y,a,bx, y, a, b where x,a,bx, a, b are inputs and yy 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?

Choose one option
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.

  1. The function pseudocode is:

    if (x is 1) y = a;
    else y = b;
    
  2. Expressed as a Boolean logic equation:

    y=x⋅a+x‾⋅b.y = x \cdot a + \overline{x} \cdot b.
  3. This Boolean function takes:

    • A selection/control input xx
    • Two data inputs aa and bb
    • A single data output yy
  4. 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).

Final answer

C

Common trap

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.