GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Derive a combinational gate network function

7 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Write a Boolean expression for each internal gate in topological order, preserving inverter bubbles; substitute into the output, simplify with De Morgan/absorption, and check the requested function, redundant input or minterm set. Restricted to acyclic explicit gate networks.

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

2 marks · MCQ
Report issue

Logic Minimization & Karnaugh Maps

Question 28, GATE 2020: Circuit equivalent: b enters NOT, its output and c enter AND, and that result and a enter OR to produce z. With minterm index 4a+2b+c, choose z. A Σm(0,1,3,7); B Σm(1,4,5,6,7); C Σm(2,4,5,6,7); D Σm(2,3,5).
Question 28, GATE 2020: Circuit equivalent: b enters NOT, its output and c enter AND, and that result and a enter OR to produce z. With minterm index 4a+2b+c, choose z. A Σm(0,1,3,7); B Σm(1,4,5,6,7); C Σm(2,4,5,6,7); D Σm(2,3,5).
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Worked explanation

Read the inversion bubble on b before constructing the product term. The AND output is b′c and the final OR adds a. Truth-table equivalent, in order abc=000,001,010,011,100,101,110,111: z=0,1,0,0,1,1,1,1. Index each assignment as binary abc with a most significant. The true rows are therefore 1,4,5,6,7. Option C incorrectly includes minterm 2, which has c=0, while A and D omit true rows with a=1. The displayed gate connections, rather than a guessed canonical expression, determine the result.

Derivation and answer

The circuit computes z=a∨(¬b∧c). For a=1 all four minterms 4, 5, 6, 7 are on. For a=0 the only on assignment is b=0, c=1, minterm 1. Thus Σm(1, 4, 5, 6, 7), B.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

Circuit not equivalent to XNOR

Boolean Algebra & Logic Gates

Question 13, GATE 2011: Which circuit is NOT equivalent to a two-input XNOR? Let the upper and lower inputs be x and y. The structural descriptions below replace the source gate drawings; NOT, AND, OR and XOR denote gates.

(A) XOR(x,y) followed by NOT
(B) NOT both inputs, feed them to XOR, then NOT its output
(C) NOT x, then XOR with y
(D) Invert y to y'; feed x and y' to an AND followed by NOT and also to an OR; AND those two outputs and then invert
Tap to enlarge
Your answer
Answer & solution

Official answer: D

A complements XOR. B complements both XOR inputs and then its output, also producing XNOR. C complements exactly one XOR input, again XNOR. In D, let top input be x and lower input y. The inner branches are (xy′)′ and x+y′; the final NAND gives [(xy′)′(x+y′)]′, which is the complement of XOR(x, y′), hence XOR(x, y). Thus D is not XNOR. The wire bridge was checked in the source.

A truth-table check makes the distinction explicit. XNOR has outputs 1,0,0,1 for inputs 00,01,10,11. Inverting both XOR inputs leaves XOR unchanged, whereas inverting exactly one input complements XOR, explaining A through C. For D, write u=x and v=y'. The product (uv)'(u+v) equals u XOR v. The final inversion yields NOT(x XOR y')=x XOR y, whose outputs are 0,1,1,0, the opposite of the target.

Original paper, page 4 · Answer key

2 marks · MCQ
Report issue

Simplifying a NOR network

Boolean Algebra & Logic Gates

Question 31, GATE 2010: A combinational circuit consists entirely of 2-input NOR gates. Define NOR(x,y)=¬(x+y). Its wiring is a=NOR(P,Q), b=NOR(Q,R), c=NOR(P,R), d=NOR(Q,R), u=NOR(a,b), v=NOR(c,d), and f=NOR(u,v). What is f?
Options: (A) ¬(Q+R); (B) ¬(P+Q); (C) ¬(P+R); (D) ¬(P+Q+R).
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

The top second-level NOR gives complement(complement(P+Q)+complement(Q+R))=(P+Q)(Q+R)=Q+PR. The bottom gives (P+R)(Q+R)=R+PQ. The final NOR complements their sum: f=complement(Q+PR+R+PQ)=complement(Q+R), since PR is absorbed by R and PQ by Q. Thus A.

De Morgan’s law turns a NOR of two complemented OR expressions into an AND of the original OR expressions. The identity (X+Y)(X+Z)=X+YZ then simplifies the two intermediate branches. Finally Q+PQ=Q and R+PR=R remove the terms containing P entirely, so the output is independent of P despite P appearing in the wiring.

Original paper, page 7

1 mark · MCQ
Report issue

Redundant input in a NAND network

Boolean Algebra & Logic Gates

Question 15, GATE 2005: Circuit: top gate is NAND of X and complemented Y; bottom gate is AND of Y and Z; output f is NAND of those two results. Which variable is redundant? A X; B Y; C Z; D none.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

The upper NAND output is ¬(X¬Y)=¬X+Y; the lower AND output is YZ. The final NAND is ¬[(¬X+Y)YZ]=¬(YZ), because Y(¬X+Y)=Y. Thus X is irrelevant and f depends only on Y, Z, A.

Let top output t=¬(X¬Y), bottom u=YZ, and f=¬(tu). If Y=0, u=0 and f=1 regardless of X, Z. If Y=1, the top output is 1 and f=¬Z. Together these cases give f=¬Y∨¬Z=¬(YZ), independent of X. This also follows algebraically because Y·¬Y=0 cancels the X-dependent product. Thus A.

Original paper, page 2

Report issue

Simplifying a NAND network

Boolean Algebra & Logic Gates

Question 1.8, GATE 1994: The circuit forms t=NAND(A,B), u=NAND(t,C), v=NAND(C,D), then f=NAND(u,v). Find its Boolean expression.
Tap to enlarge
Your answer
Answer & solution

Answer: A: ¬A·C+¬B·C+CD (no official key was published)

Write t=¬(AB), u=¬(tC), and v=¬(CD). The final NAND gives f=¬(uv)=¬u+¬v=tC+CD by De Morgan’s law. Substituting t=¬A+¬B yields f=¬A·C+¬B·C+CD. Following the intermediate nets prevents accidentally treating the first NAND as AND or distributing a complement across a sum without changing the operator. This algebra uses the input fan-out of C to both middle gates as shown in the figure.

Original paper, page 1

2 marks · MSQ
Report issue

A four-NOR logic network

Boolean Algebra & Logic Gates

Question 6.1, GATE 1993: Let t=NOR(x,y),u=NOR(x,t),v=NOR(y,t),f=NOR(u,v). Identify the function.
Tap to enlarge
Select all that apply
Answer & solution

Answer: B: exclusive NOR (no official key was published)

The first output is t=¬x¬y. Then u=¬(x+t)=¬x·y and v=x·¬y. These are the two unequal-input cases. The final NOR complements their OR, giving f=¬(¬x·y+x·¬y)=xy+¬x¬y. Hence f is one exactly when x=y, the exclusive-NOR function. Evaluating 00,01,10,11 yields 1,0,0,1, distinguishing it from XOR and from a single NOR gate.

Original paper, page 4