Which of the following represents the function of a Multiplexer?

2017

Which of the following represents the function of a Multiplexer?

  1. A.

    Y = A + B

  2. B.

    Y = A | B

  3. C.

    Y = A & B

  4. 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.

Explore the full course: Coal India Management Trainee