Which of the following represents the function of a Multiplexer?
2017
Which of the following represents the function of a Multiplexer?
- A.
Y = A + B
- B.
Y = A | B
- C.
Y = A & B
- D.
Y = S ? A : B
Attempted by 187 students.
Show answer & explanation
Correct answer: D
A multiplexer acts as a data selector. A 2-to-1 MUX routes input A or B to output Y based on a select line S. If S = 1 (true), Y = A; if S = 0 (false), Y = B. This logic is perfectly represented by the conditional (ternary) operator: Y = S ? A : B.
Thus, the correct option is D.