What will be the output if following logic diagram?
2013
What will be the output if following logic diagram?

- A.
x OR y
- B.
x AND y
- C.
x XOR y
- D.
x XNOR y
Attempted by 90 students.
Show answer & explanation
Correct answer: C
Input x and the inverse of y feed into the top AND gate, generating the term xy'. Simultaneously, the inverse of x and input y feed into the bottom AND gate, generating x'y. These two outputs are then combined by the final OR gate.
This results in the Boolean expression xy' + x'y, which is the standard definition for the Exclusive OR (XOR) logic function.
A video solution is available for this question — log in and enroll to watch it.