GATE Computer ScienceHardGATE CS (PYQ pattern)
What is the minimum number of 2-input NOR gates needed to realise A XOR B when only the true inputs A and B are available?
- A. 5
- B. 4
- C. 3
- D. 6
Correct answer: A. 5
By duality with the NAND case, XNOR needs 4 NOR gates (the NAND-style XOR structure), while XOR needs 5: a NOR gate after the XNOR to invert. An exhaustive search finds no 4-gate network for XOR.
More Digital Logic questions
- F(A,B,C,D,E) = E + (A ⊕ B ⊕ C ⊕ D). How many literals does the minimal sum-of-products of F contain?
- F(A,B,C,D,E) = Σm(1,4,5,10,11,14,16,17,21,25,26,28,30). How many literals are in its minimal sum-of-products?
- F(A,B,C,D,E) = Σm(1,2,3,5,6,8,9,11,12,13,15,19,21,23,24,26,27,30). How many prime implicants does F have?
- An 8-bit CPU compares A = 0x7F with B = 0x80 by computing A + (~B) + 1 and sets flags N (sign of result), Z, C (carry-out of the adder)…
- An 8-bit ALU computes 0x80 − 0x01 as 0x80 + 0xFE + 1. What are the resulting flags (N, Z, C, V) where C is the adder's carry-out?
- A 4-bit register Q3Q2Q1Q0 shifts right every clock (Q2 ← Q3, Q1 ← Q2, Q0 ← Q1), and the new Q3 = Q3 ⊕ Q0 (old values). It starts at 1000…