GATE / CS ARCHIVE

GATE CSE 2025 SET 2 / QUESTION 31

GATE CSE 2025 Set 2 Q31

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 2025 Set 2 paper

GATE 2025 Set 2, Q31 1 mark · MSQ
Report issue

Boolean Algebra & Logic Gates

Question 31, GATE 2025: A logic circuit has three branches feeding a final OR gate: (1) a NAND of X and Y; (2) an inverter on X; (3) an AND of X and an inverted Y. Select all expressions equal to the output F. Here ¬ means NOT, adjacency means AND, and + means OR.
A. ¬(XY).
B. ¬X+¬Y+X¬Y.
C. ¬(XY)+¬X+X¬Y.
D. X+¬Y.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, C

Read the circuit one gate at a time. The top branch outputs ¬(XY), the middle inverter outputs ¬X, and the bottom AND outputs X¬Y. OR-ing these gives F=¬(XY)+¬X+X¬Y, exactly C.

Apply De Morgan's law: ¬(XY)=¬X+¬Y. Therefore F=¬X+¬Y+¬X+X¬Y. Idempotence removes the duplicate ¬X, leaving ¬X+¬Y+X¬Y, which is B. Absorption gives ¬Y+X¬Y=¬Y, so F=¬X+¬Y=¬(XY), which is A.

For D, use a distinguishing input instead of relying on appearance. When X=Y=1, all three actual circuit branches output zero, so F=0. But X+¬Y=1+0=1. Thus D is not equivalent. A truth-table check gives F=1,1,1,0 for XY=00,01,10,11, the NAND pattern. Select A,B,C.

Original paper, page 25 · Answer key