Which one of the following will be the output of the given circuit?
- Option A: NOR Gate
- Option B: NAND Gate
- Option C: AND Gate
- Option D: XOR Gate
Solution
Core idea. XOR is "OR but not AND": the OR of the inputs multiplied by the inverse of their AND.
Concept refresher. An AND gate gives , an OR gate gives and a NOT gate gives the inverse of its input. By De Morgan's theorem . The exclusive OR is 1 when exactly one of the inputs is 1:
Picture the situation. The last AND gate needs both of its lines high. The lower line, from the OR gate, is high when at least one input is 1. The upper line, the inverted AND, is high unless both inputs are 1. Together: at least one input is 1, but not both. That is the exclusive OR.
Approach. Write the output expression and simplify it, then confirm with the truth table.
Step 1: The two lines
The upper AND gate gives , and the NOT gate turns it into . The OR gate gives .
Step 2: The last AND gate
It multiplies the two signals, and De Morgan's theorem opens the first bracket:
Step 3: Simplifying
On multiplying out, the terms and are 0, which leaves
the exclusive OR (XOR) operation.
Answer. (D) XOR Gate
Sanity check. The four outputs for inputs 00, 01, 10, 11 come out as 0, 1, 1, 0: high only when the inputs differ.
Why the other options are wrong
- (A) A NOR gate gives 1 only for the inputs 00; this circuit gives 0 for 00 and 1 for 01 and 10.
- (B) NAND is only the upper line of the circuit; the last gate also needs the OR line high, which fails for the inputs 00.
- (C) An AND gate gives 1 for the inputs 11; here the inverted AND line is 0 for them, so the output is 0.
Key takeaway
The trap. Write each line into the last gate in full before multiplying the two.
How toppers think. They check the rows 00 and 11: an output of 0 for both, with 1 for the other two rows, marks an XOR.
Remember. .
More on Semiconductors
- The output Y for the given inputs A and B to the circuit is:
- The maximum rated power of the LED is 2 mW and it is used in the circuit with input voltage of 5 V as shown…
- Refer to the logic circuit given below. For two inputs (A = 1, B = 1) and (A = 0, B = 1), output (Y) will be…
- All 145 on Semiconductors ›