Exams › GATE › Technical
Consider the following combinational function block involving four Boolean variables x, y, a, b where x, a, b are inputs and y 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?
- Full adder
- Priority encoder
- Multiplexor
- Flip-flop
Correct answer: Multiplexor
Solution
The function described selects between two inputs, a and b, based on the value of x, which is characteristic of a multiplexor. A multiplexor routes one of its multiple inputs to the output depending on the control signal, making it the most suitable choice for this logic function.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →