NEET 2018 · Question 17 · Physics · Multiple choice (MCQ) · 4 marks · −1 for a wrong answer
In the combination of the following gates the output Y can be written in terms of inputs A and B as

- (1) A̅.B̅ + A.B
- (2) A.B̅ + A̅.B
- (3) A̅.̅B̅
- (4) A + B̅
Answer and solution
Answer (2)
Answer from the official final answer key (NEET (UG) 2018, CBSE).
Solution
Trace each AND gate's two inputs from the wiring, then OR the two products together.

- Upper AND gate. A reaches it directly and B reaches it through a NOT gate. Its output is A·B̅.
- Lower AND gate. The branch from A passes through the lower NOT gate, and the branch from B goes straight in. Its output is A̅· B.
Y = A·B̅ + A̅· B
- So. The OR gate adds the two products, which is the XOR function. The answer is option (2).
The idea to keep. For gate combinations, write the output of each gate in turn from input to output. Two AND gates with crossed inverted inputs feeding an OR gate form XOR: AB̅ + A̅B.
Solution by PrepWiser.