GATE / CS ARCHIVE

SUBJECT COLLECTION

Digital Logic · Boolean Algebra & Logic Gates

54 questions, newest first

GATE CSE has asked 54 questions on Boolean Algebra & Logic Gates (Digital Logic) from 1991 to 2026, in 35 of the 46 papers; the most recent is in GATE CSE 2026 Set 2. In the last five years it carried 1.1 marks per 100-mark paper on average, against 1.2 since 2003. Since 2014 the questions have been 12 MCQ, 7 MSQ and 1 NAT. 11 groups of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
Show
1 mark · MSQ
Report issue

Simplifying a Boolean XOR expression

Boolean Algebra & Logic Gates

Question 21, GATE 2026: Let F(P,Q)=((NOT P) OR Q) XOR ((NOT P) AND Q). Identify equivalent expressions: A NOT(P XOR Q); B P XOR Q; C (NOT P) XOR Q; D (NOT P) XOR (NOT Q).
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C

Givens and goal

Let F(P,Q)=((NOT P) OR Q) XOR ((NOT P) AND Q). Identify equivalent expressions: A NOT(P XOR Q); B P XOR Q; C (NOT P) XOR Q; D (NOT P) XOR (NOT Q).

Approach

Rename the two repeated inputs and compare OR XOR AND with the definition of exclusive OR.

Step-by-step solution

1. Let x=NOT P and y=Q. The given expression becomes (x OR y) XOR (x AND y).
2. If both x and y are zero, both inner expressions are zero and the result is zero. If exactly one is one, the OR is one and the AND zero, so the result is one. If both are one, both inner expressions are one and the result is zero. Thus the expression is x XOR y.
3. Substituting back gives (NOT P) XOR Q, exactly option C. Complementing one XOR input complements the XOR result, so this is also NOT(P XOR Q), option A.
4. B is P XOR Q, the opposite function. D complements both XOR inputs and therefore equals P XOR Q as well, so neither is equivalent to the given expression.

Truth-table check: For (P,Q)=00,01,10,11, the output is respectively 1,0,0,1. This is XNOR of P and Q.

Visual check: Option A's bar covers the whole XOR expression; C complements P only; D complements each input separately. Those distinctions were confirmed in the rendered source.

Explicit truth table

    P Q | NOT P OR Q | NOT P AND Q | F
    0 0 |      1     |       0     | 1
    0 1 |      1     |       1     | 0
    1 0 |      0     |       0     | 0
    1 1 |      1     |       0     | 1

The first two intermediate columns distinguish OR from AND; XOR of equal bits is zero and XOR of unequal bits is one. Matching the final column, rather than just manipulating complement symbols visually, verifies both selected forms.

Original paper, page 16 · Answer key

1 mark · MCQ
Report issue

Finding a false Boolean identity

Boolean Algebra & Logic Gates

Question 16, GATE 2026: Here + is OR, · is AND, and prime is NOT. Which is not a Boolean identity? A a+b=b+a; B a·a′=1; C a+a′=1; D a·b=b·a.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Givens and goal

Here + is OR, · is AND, and prime is NOT. Which is not a Boolean identity? A a+b=b+a; B a·a′=1; C a+a′=1; D a·b=b·a.

Approach

Test complement laws on the two possible Boolean values.

Step-by-step solution

1. If a=0, then a′=1 and a·a′=0·1=0. If a=1, then a′=0 and a·a′=1·0=0. Thus a·a′ is always 0, never 1.
2. Consequently the equality in B is false. Its correct form is a·a′=0, the AND complement law.
3. For the same two cases, a+a′ is 0+1 or 1+0, both 1. C is therefore the valid OR complement law.
4. A and D are the commutative laws for OR and AND; swapping operands does not alter their truth tables. Answer B. Boolean + is logical OR here, not ordinary integer addition.

Original paper, page 14 · Answer key

1 mark · MSQ
Report issue

Proving identities of a majority gate

Boolean Algebra & Logic Gates

Question 24, GATE 2025: X(a,b,c)=1 precisely when at least two of a,b,c equal 1. Select identities valid for every Boolean input: A X(a,b,X(c,d,e))=X(X(a,b,c),d,e); B X(a,b,X(a,b,c))=X(a,b,c); C X(a,b,X(a,c,d))=X(a,b,a) AND X(c,d,c); D X(a,b,c)=X(a,X(a,b,c),X(a,c,c)).
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, D

Approach: Use two basic majority rules: X(u,u,v)=u, and X(0,1,v)=v. Prove claimed identities by cases and reject others with one counterexample.
For B, if a=b then both sides equal a. If a≠b, the outer X(a,b,z) returns z, so the left side becomes X(a,b,c), exactly the right side. Thus B holds.
For D, X(a,c,c)=c. If a=c, both the left side and X(a,X(a,b,c),c) equal a. If a≠c, X(a,b,c)=b, and the right side becomes X(a,b,c)=b. Thus D also holds.
A is not an associative law: choose (a,b,c,d,e)=(0,0,0,1,1). The left side is X(0,0,1)=0, whereas the right side is X(0,1,1)=1.
C fails for (a,b,c,d)=(0,1,1,1). Its left side is X(0,1,1)=1; its right side is X(0,1,0) AND X(1,1,1)=0 AND 1=0.
Therefore select B,D. Equality on a few examples cannot establish an identity, which is why the true cases require a complete case argument.

Original paper, page 24 · Answer key

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 · MSQ
Report issue

Boolean Algebra & Logic Gates

Question 50, GATE 2025: Select every Boolean identity valid for all inputs. Use ¬ for NOT, juxtaposition for AND, and + for OR.
A. ¬ABC + A¬B¬C + ¬A¬B¬C + A¬BC + ABC = BC + ¬B¬C + ¬A¬B.
B. AB + ¬AC + BC = AB + ¬AC.
C. (A+C)(¬A+B) = AB + ¬AC.
D. ¬[(A+¬B+¬D)(C+D)(¬A+C+D)(A+B+¬D)] = ¬AD + ¬C¬D.
In expressions such as ¬ABC, the negation applies only to the immediately following variable A; the bracketed negation in D applies to the entire product.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C, D

B is the consensus identity. Split its extra term BC using A+¬A=1:
BC=ABC+¬ABC.
The term ABC is absorbed by AB, and ¬ABC is absorbed by ¬AC. Hence AB+¬AC+BC=AB+¬AC, proving B.

Expand C's left side: (A+C)(¬A+B)=A¬A+AB+¬AC+BC=AB+¬AC+BC. The first product vanishes, and B's consensus simplification yields the stated right side. Thus C holds.

For D, apply De Morgan to the outer complement and then to each sum:
¬[(A+¬B+¬D)(C+D)(¬A+C+D)(A+B+¬D)]
=¬ABD + ¬C¬D + A¬C¬D + ¬A¬BD.
Combine the first and fourth terms: ¬ABD+¬A¬BD=¬AD(B+¬B)=¬AD. Absorb A¬C¬D into ¬C¬D. The result is ¬AD+¬C¬D, so D holds.

A fails at A=0,B=0,C=1. Every term on its left is zero, but the right includes ¬A¬B=1. A single counterexample rejects a claimed identity. Select B,C,D. The scope of all complement bars, especially D's outer complement and its third factor, was checked on the source image.

Original paper, page 38 · Answer key

1 mark · MSQ
Report issue

Test Boolean identities with the two possible values

Boolean Algebra & Logic Gates

Question 30, GATE 2024: For Boolean x select the FALSE identities. A x·1=x; B x+1=x; C x·x=0; D x+¬x=1. Here · means AND and + means OR.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Approach: Use Boolean truth tables, not ordinary arithmetic addition.

1. Derivation. Boolean identities give x·1=x and x+NOT x=1, so A, D are true. In contrast x+1=1, not x when x=0; and x·x=x, not 0 when x=1. The false identities are B, C.

2. Explanation and checks. For x=0 the left sides of A,B,C,D are 0,1,0,1, while the asserted right sides are 0,0,0,1; B already fails. For x=1 the left sides are 1,1,1,1 and the right sides are 1,1,0,1; C fails. Thus an identity must hold for both input values to be true. A is the AND identity law, C misstates idempotence, and D is the complement law.

Original paper, page 20 · Answer key

2 marks · MSQ
Report issue

Compose minterm sets through AND, OR and XOR

Boolean Algebra & Logic Gates

Question 50, GATE 2024: Four-input-variable Boolean functions have minterm sets f1={0,2,3,5,7,8,11,13}, f2={1,3,5,7,11,13,15}, f3={0,1,4,11}, f4={0,2,6,13}. Circuit Y=(f1 AND f2) XOR (f3 OR f4). Which are correct? A Y=Σ(0,1,2,11,13); B Y=Π(3,4,5,6,7,8,9,10,12,14,15); C Y=Σ(0,1,2,3,4,5,6,7); D Y=Π(8,9,10,11,12,13,14,15).
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

Approach: Treat each function’s one-set as a set: AND intersects, OR unites, XOR takes symmetric difference.

1. Derivation. The circuit first ANDs f1 and f2, whose common minterms are{3, 5, 7, 11, 13}. The OR of f3, f4 has minterms{0, 1, 2, 4, 6, 11, 13}. The final XOR keeps their symmetric difference, cancelling11, 13 and giving{0, 1, 2, 3, 4, 5, 6, 7}. Its complementary maxterm indices are 8 through 15. Hence C, D. The final gate was visually confirmed to be XOR, not OR.

2. Explanation and checks. At indices 11 and 13 both intermediate gates output 1, so XOR outputs 0; an OR final gate would incorrectly keep them. At 3,5,7 only the AND branch is 1; at 0,1,2,4,6 only the OR branch is 1. All eight indices 0 through 7 therefore survive. A product-of-maxterms lists zero positions rather than one positions, so complementing this set inside the 16 possible inputs yields D, an equivalent representation to C.

Original paper, page 35 · Answer key

2 marks · MSQ
Report issue

Boolean Algebra & Logic Gates

Question 42, GATE 2021: Let F=(X+Y+Z)(¬X+Y)(¬Y+Z), where + is OR and adjacency AND. Select expressions equal to ¬F: A (¬X+¬Y+¬Z)(X+¬Y)(Y+¬Z); B X¬Y+¬Z; C (X+¬Z)(¬Y+¬Z); D X¬Y+Y¬Z+¬X¬Y¬Z.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B; C; D

Step through it (14 steps)

If Z=0, the product is (X+Y)(NOT X+Y)(NOT Y)=Y(NOT Y)=0. If Z=1, it is NOT X+Y. Thus F=Z(NOT X+Y) and its complement is NOT Z+X(NOT Y), option B. By (a+b)(c+b)=ac+b, C is the same expression. Direct De Morgan expansion gives X(NOT Y)+Y(NOT Z)+(NOT X)(NOT Y)(NOT Z), exactly D. Option A is false, for example at X=0, Y=1, Z=0: it evaluates to 0 while the complement of F is 1.

Algebraically, (X+Y)(¬X+Y)=Y, so setting Z=0 makes F=Y¬Y=0. Setting Z=1 leaves only ¬X+Y. Hence ¬F=¬Z+X¬Y. Expanding C gives X¬Y+X¬Z+¬Y¬Z+¬Z, which absorbs to B. De Morgan on the original three factors gives D directly. Checking A at (X,Y,Z)=(0,1,0) yields a zero second factor (X+¬Y), whereas F=0 and its complement must be 1; this single assignment rules A out.

Original paper, page 35 · Answer key

1 mark · MCQ
Report issue

Testing a proposed Boolean identity

Boolean Algebra & Logic Gates

Question 6, GATE 2019: Let + mean Boolean OR, juxtaposition mean AND, prime mean NOT, and ⊕ mean XOR. Identify the invalid identity: A (x⊕y)⊕z = x⊕(y⊕z); B (x+y)⊕z = x⊕(y+z); C x⊕y = x+y when xy=0; D x⊕y = (xy+x′y′)′.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Method: a universal identity is disproved by one assignment; valid alternatives can be checked from XOR's meaning.

1. For B, set x = 1, y = 1, z = 0. The left side is (1 OR 1) XOR 0 = 1 XOR 0 = 1. The right side is 1 XOR (1 OR 0) = 1 XOR 1 = 0. The two sides differ, so B is invalid.
2. A is XOR associativity. Both sides indicate whether an odd number of x, y, z are one, independent of grouping.
3. For C, xy = 0 excludes the only assignment, x = y = 1, on which OR and XOR differ. Therefore the conditional identity is valid.
4. In D, xy + x′y′ is true exactly when x and y agree: both one or both zero. Complementing that equality condition gives XOR, which is true exactly when they differ.

Result: B. XOR is associative with itself, but mixing it with OR does not preserve that associativity pattern.

Original paper, page 5 · Answer key

2 marks · MCQ
Report issue

Combining Boolean on-sets

Boolean Algebra & Logic Gates

Question 30, GATE 2019: The on-sets of four-variable functions are f1={0,2,5,8,14}, f2={2,3,6,8,14,15}, f3={2,7,11,14}. A circuit ANDs f1 and f2, then XORs that output with f3. Find the output minterms: A {7,8,11}; B {2,7,8,11,14}; C {2,14}; D {0,2,3,5,6,7,8,11,14,15}.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. An on-set lists the input minterms on which a Boolean function equals 1. Working with these sets avoids expanding every minterm into a product of four literals.
2. The AND output is 1 only where both f1 and f2 are 1. Their intersection is H={2,8,14}; all other minterms make the AND output zero.
3. XOR is 1 precisely when its inputs differ. Therefore the final on-set is the symmetric difference of H and the on-set of f3, not their ordinary union.
4. Minterms 2 and 14 occur in both sets, so XOR makes them zero. Minterm 8 occurs only in H, while 7 and 11 occur only in f3, so these three survive.
5. The result is f=Σ(7,8,11), option A. Option B would correspond to OR at the second stage, illustrating why the XOR symbol matters.

Original paper, page 10 · Answer key

2 marks · NAT
Report issue

Minimum NOR realization of XNOR

Boolean Algebra & Logic Gates

Question 50, GATE 2019: For variable order a,b,c,d, implement f=Σ(0,2,5,7,8,10,13,15) using the fewest two-input NOR gates. All variables and their complements are already available. Find that gate count.
Tap to enlarge
Answer & solution

Official answer: 3

1. Write minterm indices in binary abcd. The four indices 0,2,8,10 all have b=d=0; 5,7,13,15 all have b=d=1. In each group a and c take every combination. Hence f depends only on b,d and equals b XNOR d.
2. Build the two mismatch terms using NOR: u=NOR(b,¬d)=¬b·d and v=NOR(¬b,d)=b·¬d. Each is one gate because complemented inputs are available free.
3. Feed these to a third NOR: NOR(u,v)=¬(¬b·d+b·¬d)=b XNOR d=f. This proves three gates are sufficient.
4. For minimality, consider any circuit with at most two gates. If a raw input literal feeds the final NOR, setting that literal true forces the output to zero regardless of all other variables. The target XNOR has no such literal: for either setting of b or d it can still be 1, and it does not depend on a or c.
5. Without a raw literal at the final gate, both final inputs must be the output of the only earlier NOR. This merely inverts that NOR and gives the OR of its two input literals. No OR of literals realizes XNOR, whose 1-values are the two separated equal-bit cases.
6. Thus one or two gates cannot suffice, while the explicit circuit uses three. The minimum is 3. Complement availability is essential to this count; generating inversions separately would change the implementation cost.

Original paper, page 15 · Answer key

1 mark · MCQ
Report issue

Testing XOR and XNOR identities

Boolean Algebra & Logic Gates

Question 4, GATE 2018: Let ⊕ be XOR and ⊙ XNOR. Which identity is false? A ¬(P⊕Q)=P⊙Q; B (¬P)⊕Q=P⊙Q; C (¬P)⊕(¬Q)=P⊕Q; D (P⊕¬P)⊕Q=(P⊙¬P)⊙¬Q.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Method

XOR is 1 exactly when its inputs differ; XNOR is its complement. Complementing one input changes “different” to “equal”, proving B, while complementing both preserves whether they differ, proving C. In D simplify the inner gates first, rather than assuming associativity transfers between XOR and XNOR. A concrete counterexample is Q=0: the left evaluates to 1 and the right to 0, regardless of P.

Solution

In D, P XOR not-P=1, so the left side is not-Q. Meanwhile P XNOR not-P=0, and 0 XNOR not-Q=Q. The sides are opposite, so D is false. Complementing a single XOR input gives XNOR, while complementing both leaves XOR unchanged, validating the other identities.

Original paper, page 5 · Answer key

2 marks · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 27, GATE 2017: For Boolean variables w,x,y,z (juxtaposition=AND, +=OR, ¬=NOT), which equality is incorrect? A:wx+w(x+y)+x(x+y)=x+wy. B:¬[w¬x(y+¬z)]+¬w x=¬w+x+¬y z. C:[w¬x(y+x¬z)+¬w¬x]y=x¬y. D:(w+y)(wxy+wyz)=wxy+wyz.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Check C by expanding its left side: w¬xyy+w¬xx¬zy+¬w¬xy. Since yy=y and ¬xx=0, this reduces to w¬xy+¬w¬xy=¬xy(w+¬w)=¬xy. The stated right side is x¬y, a different function.

2. A concrete counterexample is x=0,y=1, with any w,z. C then equates 1 with 0, so it is incorrect.

3. Verify the alternatives: A expands to wx+wx+wy+x+xy=x+wy by absorption. In B, De Morgan gives ¬w+x+¬y z for the complemented product; the extra ¬w x is absorbed. In D, every product inside the second factor already implies w+y, so multiplying by w+y changes nothing. C is uniquely false.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 6, GATE 2016: A Boolean operator # obeys x#0=x, x#1=NOT x, x#x=0, and x#(NOT x)=1. Identify x#y. Writing ¬ for NOT, concatenation for AND and + for OR, the options are A: x¬y+¬xy. B: x¬y+¬x¬y. C: ¬xy+xy. D: xy+¬x¬y.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The four truth-table cases specified for # are exactly exclusive OR: different operands give 1 and equal operands give 0. Therefore x#y=x¬y+¬xy, A.

Construct the rows explicitly: 0#0=0, 0#1=1, 1#0=1, 1#1=0. An SOP has a minterm for each output-one row, namely ¬xy and x¬y. These are XOR's two unequal-input cases. Option D would be XNOR, which instead outputs 1 for equal inputs. The complement symbols in the options are essential; replacing them with ordinary variables changes the operator.

Original paper, page 5 · Answer key

1 mark · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 8, GATE 2016: Boolean variables satisfy x1⊕x2⊕x3⊕x4=0. Which always holds? A x1x2x3x4=0; B x1x3+x2=0; C ¬x1⊕¬x3=¬x2⊕¬x4; D x1+x2+x3+x4=0. Juxtaposition is AND and + is OR.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

XOR parity zero means x1 XOR x3=x2 XOR x4. Complementing both inputs of either XOR leaves its value unchanged, giving ¬x1 XOR ¬x3=¬x2 XOR ¬x4, C. All four variables 1 satisfies the premise but refutes A, B, D.

XOR is addition modulo two. Moving terms across the equality means XORing both sides with the same terms, not ordinary subtraction. Also (¬u)⊕(¬v)=(u⊕1)⊕(v⊕1)=u⊕v because 1⊕1=0. This algebra proves C for every even-parity input, not just a sample assignment.

Original paper, page 27 · Answer key

2 marks · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 40, GATE 2015: Binary operator ≠ has truth table (p,q,result): (0,0,0),(0,1,1),(1,0,1),(1,1,0). Which properties hold? A commutative and associative; B commutative only; C associative only; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Recognize XOR, which is addition modulo 2. Swapping its two inputs preserves their sum modulo 2, proving commutativity. Grouping three inputs either way gives (p+q+r) mod 2, proving associativity. A truth table for only two inputs can show commutativity directly, but associativity needs the three-input relation or this algebraic argument.

Solution: The truth table is XOR. Both (a XOR b) XOR c and a XOR (b XOR c) give parity of the three bits, and a XOR b=b XOR a. Thus the operation is associative and commutative, A.

Original paper, page 15 · Answer key

2 marks · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 43, GATE 2015: Boolean operations are f(X,Y,Z)=X′YZ+XY′+Y′Z′ and g(X,Y,Z)=X′YZ+X′YZ′+XY. Which singleton basis is functionally complete? A both; B only {f}; C only {g}; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

For g, factor Y: X′Y(Z+Z′)+XY=Y(X′+X)=Y. Repeated use of a projection can merely select existing inputs, not synthesize negation. For f, connect the third input to the second: f(X,Y,Y)=X′Y+XY′+Y′=X′Y+Y′=X′+Y′=(XY)′. This constructs NAND without supplying constants; NAND alone realizes NOT and AND and therefore all Boolean functions.

Solution: g=¬XYZ+¬XY¬Z+XY=Y. Compositions of this projection cannot produce all Boolean functions. For f=¬XYZ+X¬Y+¬Y¬Z, substitute Z=Y: f(X, Y, Y)=¬XY+X¬Y+¬Y=¬X+¬Y, NAND. Since NAND alone is functionally complete, f is complete whereas g is not, B.

Original paper, page 16 · Answer key

1 mark · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 16, GATE 2015: For Boolean variables define X#Y=X′+Y′, where prime means NOT and + means OR. Consider S1: (P#Q)#R=P#(Q#R); S2: Q#R=R#Q. Which holds for all Boolean P,Q,R? (A) only S1; (B) only S2; (C) both; (D) neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. By De Morgan, X′+Y′=NOT(XY). For the counterexample, 0#1=1 and 1#1=0, so the left grouping is 1#1=0 while the right grouping is 0#0=1.

2. X#Y=¬X+¬Y is NAND and is commutative. It is not associative: P=0, Q=1, R=1 gives(P#Q)#R=0 while P#(Q#R)=1. Thus only S2, B.

Original paper, page 58 · Answer key

1 mark · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 6, GATE 2014: The dual Fᴰ of a Boolean expression F(x1,…,xn,+,·,′) swaps OR and AND. F is self-dual if F=Fᴰ. How many self-dual n-variable Boolean functions are there? A 2^n; B 2^(n-1); C 2^(2^n); D 2^(2^(n-1)).
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. Set up the reasoning. Use the truth-table characterization F(x)=NOT F(NOT x). For n≥1, every input bit vector is paired with a different bitwise-complement vector.

2. Derive the result. By Boolean duality, self-duality means F(x)=¬F(¬x). The2n assignments partition into 2n−1 complementary pairs. Choosing either value on one member determines the opposite value on its partner independently, giving 2^(2n−1) functions, D.

3. Check the interpretation. There are 2n-1 pairs, not n pairs. Each pair permits two independent output assignments, 01 or 10; exponentiating two by the number of pairs gives the function count rather than the number of truth-table rows.

Original paper, page 30 · Answer key

2 marks · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 55, GATE 2014: With ⊕ denoting XOR, simplify F(P,Q)=((1⊕P)⊕(P⊕Q))⊕((P⊕Q)⊕(Q⊕0)). A P+Q; B complement of (P+Q); C P⊕Q; D complement of (P⊕Q). Here + is Boolean OR.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step 1: XOR is associative and commutative, so flatten the expression into 1⊕P⊕P⊕Q⊕P⊕Q⊕Q⊕0. Step 2: Repeated equal pairs cancel because x⊕x=0; three P terms leave one P and three Q terms leave one Q. Zero is neutral, so F=1⊕P⊕Q. Step 3: XOR with 1 complements its operand: F=¬(P⊕Q), the XNOR function, D. Its output is 1 when P and Q agree, distinguishing it from OR and NOR.

Original paper, page 66 · Answer key

1 mark · MCQ
Report issue

XOR and XNOR complements

Boolean Algebra & Logic Gates

Question 21, GATE 2013: Which does not represent XNOR(x, y)? A xy+¬x¬y; B x XOR ¬y; C ¬x XOR y; D ¬x XOR ¬y.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Complementing exactly one XOR input produces XNOR, while complementing both leaves XOR unchanged: x′⊕y′=x⊕y. Also xy+x′y′ is XNOR. Thus only D fails to represent XNOR.

XNOR is 1 exactly on equal inputs 00 and 11. Complementing both XOR operands does not change whether they differ, so ¬x XOR ¬y has the same truth values as x XOR y:0, 1, 1, 0. It therefore disagrees with XNOR on every row. Complementing one input toggles equality versus inequality and produces XNOR. The sum xy+¬x¬y directly lists the two equal-input cases.

Original paper, page 5 · Answer key

1 mark · MCQ
Report issue

Boolean function from truth table

Boolean Algebra & Logic Gates

Question 6, GATE 2012: The truth table
                                                  X    Y     f (X, Y)
                                                  0    0         0
                                                  0    1         0
                                                  1    0         1
                                                  1    1         1
        represents the Boolean function
        (A) X                   (B) X + Y                  (C) X ⊕ Y              (D) Y
Tap to enlarge
Your answer
Answer & solution

Official answer: A

For X=0 both rows output 0, and for X=1 both rows output 1, regardless of Y. Thus f(X, Y)=X, option A.

Check: Using minterms, the two true rows give XȲ+XY. Factor X to obtain X(Ȳ+Y)=X. X+Y would wrongly output 1 on input 01, while XOR would wrongly output 0 on 11.

Original paper, page 3 · 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

Minimum two-input NOR realization

Boolean Algebra & Logic Gates

Question 6, GATE 2009: Implement F=AB+C using only two-input NOR gates. Find the minimum gate count: A 2; B 3; C 4; D 5.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Factor AB+C=(A+C)(B+C). Compute u=NOR(A, C), v=NOR(B, C), then NOR(u, v)=(A+C)(B+C), using three gates. Two do not suffice: with at most two gates, the final NOR receives only primary inputs and the output of one preceding NOR; exhaustive truth-table enumeration of all such input choices finds no realization. Thus 3, B. The accompanying check script verifies the lower bound without assuming complementary inputs are supplied.

Use the product-of-sums identity AB+C=(A+C)(B+C). Gate 1 gives ¬(A+C); gate 2 gives ¬(B+C); their NOR yields ¬[¬(A+C)+¬(B+C)]=(A+C)(B+C). Thus three gates suffice. With only two NOR gates, the last gate can take raw inputs and at most one derived NOR signal; checking these structural possibilities cannot produce this three-variable function. The accompanying exhaustive small-circuit checker supplies the lower-bound check, so three is minimal.

Original paper, page 2

1 mark · MCQ
Report issue

Compatible minterms of an internal signal

Boolean Algebra & Logic Gates

Question 8, GATE 2008: An AND gate combines f₁ and f₂, and its output is ORed with f₃ to produce f. Given f₁=Σm(4,5,6,7,8), f₃=Σm(1,6,15), f=Σm(1,6,8,15), which offered f₂ works?

(A) Σm(4,6)
(B) Σm(4,8)
(C) Σm(6,8)
(D) Σm(4,6,8)
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. The circuit computes f=(f1∧f2)∨f3. Minterm8 must be supplied through f1f2, while 4,5,7 must not be introduced.
2. Of the options, only f2=Σm(6,8) meets these conditions, giving final set{1,6,8,15}, C. The internal function is not uniquely determined over all possible minterms: values outside f1’s support are irrelevant and minterm 6 is already covered by f3.
3. C is the unique compatible supplied choice.

Original paper, page 3

2 marks · MCQ
Report issue

Boolean-product simplification

Boolean Algebra & Logic Gates

Question 26, GATE 2008: Simplify (P+Q′)(PQ′+PR)(P′R′+Q′), where + is Boolean OR and juxtaposition is AND.

(A) PQ′
(B) PR′
(C) PQ′+R
(D) PR′+Q
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step through it (9 steps)

1. Factor the middle term as P(Q′+R), so when P=0 the whole expression is 0.
2. For P=1, the first factor P+Q′ is 1; the middle is Q′+R; the last P′R′+Q′ is Q′.
3. Absorption gives (Q′+R)Q′=Q′. Combining both P cases yields PQ′, A. This checks the full function, not just a selected input.

Original paper, page 5

1 mark · MCQ
Report issue

Counting Boolean functions

Boolean Algebra & Logic Gates

Question 3, GATE 2007: What is the maximum number of different Boolean functions on n Boolean variables?
Options:
(A) n²
(B) 2^n
(C) 2^(2^n)
(D) 2^(n²)
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Approach. First count truth-table rows, not functions. A truth table has 2n rows; choosing an output bit independently for every row determines one function.

2. Derivation and interpretation. There are 2n input assignments. Each can independently be assigned output 0 or 1, giving 22^n distinct Boolean functions, C. This counts functions on n variables, including those independent of some variables.

Original paper, page 2

2 marks · MCQ
Report issue

XNOR algebra identities

Boolean Algebra & Logic Gates

Question 33, GATE 2007: Define X*Y=XY+X′Y′ for Boolean variables, and let Z=X*Y. Consider P: X=Y*Z; Q: Y=X*Z; R: X*Y*Z=1. Which statements hold?
Options:
(A) Only P and Q
(B) Only Q and R
(C) Only P and R
(D) All P,Q,R
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Approach. The connective is equivalence/XNOR. Express it as 1⊕X⊕Y, then substitute the definition of Z; each variable appearing twice cancels under XOR.

2. Derivation and interpretation. The operation is XNOR, representable over modulo 2 arithmetic as X*Y=1⊕X⊕Y. With Z=1⊕X⊕Y, we get Y*Z=X and X*Z=Y. Moreover (X*Y)*Z=Z*Z=1; XNOR is associative here. Therefore all P,Q,R hold, D.

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

1 mark · MCQ
Report issue

Simplifying a Boolean sum

Boolean Algebra & Logic Gates

Question 17, GATE 2004: Simplify f=x′y′+xy+x′y, where prime denotes complement, juxtaposition AND and + OR.
Options:
(A) x′+y′
(B) x+y
(C) x+y′
(D) x′+y
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step through it (10 steps)

1. x′y′+xy+x′y=x′(y′+y)+xy=x′+xy=x′+y by absorption. Thus D.

2. Teaching check: A case check confirms the algebra: when x=0, either y value satisfies x′y′+x′y, so output is 1; when x=1 only xy remains, so output equals y. The function is therefore x′ OR y, not x OR y′.

Original paper, page 3

2 marks · MCQ
Report issue

Solving for a NAND-network input

Boolean Algebra & Logic Gates

Question 2.1, GATE 2002: A circuit connects f₁ and f₂ to a two-input NAND gate, inverts f₃ with a NOT gate, and feeds these two outputs to another two-input NAND gate whose output is f. Given f₁(x,y,z)=Σm(0,1,3,5), f₂(x,y,z)=Σm(6,7), and f(x,y,z)=Σm(1,4,5), find f₃.
(A) Σm(1,4,5); (B) Σm(6,7); (C) Σm(0,1,3,5); (D) None of these.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: Apply De Morgan’s law at the final gate.

Step 2: The first NAND outputs¬(f1f2), and the lower inverter outputs¬f3. The final NAND complements their conjunction, giving f1f2+f3. Because no minterm belongs to both{0,1,3,5} and{6,7}, the product f1f2 is identically zero. Therefore the third input must equal the required output, not either of the two earlier input functions.

Conclusion: The network computes f=¬(¬(f1f2)·¬f3)=f1f2+f3. The minterm sets of f1 and f2 are disjoint, so f1f2=0. Hence f3=f=Σ(1,4,5), A.

Original paper, page 3

2 marks · MCQ
Report issue

Composition of an implication-like function

Boolean Algebra & Logic Gates

Question 2.3, GATE 2002: Define the Boolean function f(A,B)=A′+B, where prime is complement and + is OR. Simplify f(f(x+y,y),z).
(A) x′+z; (B) xyz; (C) xy′+z; (D) None of these.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: Simplify one function application at a time.

Step 2: First substitute A=x+y,B=y into A′+B. De Morgan gives x′y′+y, and absorption y+x′y′=y+x′ simplifies it. Now use that entire expression as the first argument of the outer function: (x′+y)′+z=xy′+z. Complementing only one component of the inner result would give the wrong expression.

Conclusion: The inner function is f(x+y,y)=(x+y)′+y=x′y′+y=x′+y. Applying f again gives (x′+y)′+z=xy′+z, C.

Original paper, page 4

Descriptive
Report issue

Implement a Boolean function using one complement

Boolean Algebra & Logic Gates

Question 7(a), GATE 2002: Rewrite f(x,y,z)=xy′+yz′ using only one complementation and one or more AND/OR operations. Draw a circuit for that expression using a single NOT gate and AND/OR gates.
Question 7(a), GATE 2002: Rewrite f(x,y,z)=xy′+yz′ using only one complementation and one or more AND/OR operations. Draw a circuit for that expression using a single NOT gate and AND/OR gates.
Tap to enlarge
Shared context

Part (a) implements f(x,y,z) = xy′ + yz′ with one complement. Part (b) independently converts a drawn three-AND/two-OR circuit to exactly six two-input NAND gates.

Answer & solution

Answer: f = (x + y) · (yz)′ (no official key was published)

1. Start from the given f(x,y,z) = xy′ + yz′. Complementing y and z separately would require two NOT operations, so that direct sum-of-products implementation does not satisfy the restriction.

2. Search for a single complemented compound expression. De Morgan’s law gives (yz)′ = y′ + z′, so one NOT gate applied after AND(y,z) can generate the required complemented combination.

3. Verify the proposed factorization algebraically:
(x+y)(yz)′ = (x+y)(y′+z′) = xy′ + xz′ + yy′ + yz′ = xy′ + xz′ + yz′.

4. Show that xz′ is redundant rather than dropping it without justification. Split it by y: xz′ = xz′(y+y′) = xyz′ + xy′z′. The first term is already covered by yz′; the second is covered by xy′. Absorption therefore leaves precisely xy′ + yz′.

5. Implement the verified expression f = (x+y)(yz)′. Use t1 = OR(x,y), t2 = AND(y,z), t3 = NOT(t2), then f = AND(t1,t3):

x,y ---> OR --------- t1 ---\
                              AND ---> f
y,z ---> AND ---> NOT -- t3 -/

6. Count the gates: one OR, two AND gates, and exactly one NOT. The complemented quantity is yz, not either individual input. An exhaustive check of all eight input combinations independently confirms the identity.

Original paper, page 7

Descriptive
Report issue

Transform the circuit into six NAND gates

Boolean Algebra & Logic Gates

Question 7(b), GATE 2002: Convert the given circuit directly, without first expressing its switching function, into an equivalent circuit containing exactly six two-input NAND gates. Textual description of the given diagram: three separate two-input AND gates receive six input wires (two per gate). The first and second AND outputs feed a two-input OR gate. That OR output and the third AND output feed a final two-input OR gate, which produces the circuit output. The input wires are unlabeled in the reproduction.
Question 7(b), GATE 2002: Convert the given circuit directly, without first expressing its switching function, into an equivalent circuit containing exactly six two-input NAND gates. Textual description of the given diagram: three separate two-input AND gates receive six input wires (two per gate). The first and second AND outputs feed a two-input OR gate. That OR output and the third AND output feed a final two-input OR gate, which produces the circuit output. The input wires are unlabeled in the reproduction.
Tap to enlarge
Shared context

Part (a) implements f(x,y,z) = xy′ + yz′ with one complement. Part (b) independently converts a drawn three-AND/two-OR circuit to exactly six two-input NAND gates.

Answer & solution

Answer: Six two-input NAND gates with netlist N1…N6 below (no official key was published)

1. Identify the source circuit by its connections. The top, middle, and bottom two-input AND gates feed a cascade of two OR gates: the first OR combines the top two branches, and the second combines that result with the bottom branch. Label the six external wires a,b,c,d,e,f from top to bottom. These are local wire labels, not extra assumptions about their values.

2. Transform the first AND–OR section by bubble-pushing. A NAND is an AND with a complemented output. Replace the top and middle AND gates with NAND gates N1 and N2. Replace the OR they feed with NAND N4, whose effective input complements cancel those two output complements. Thus N4 has the same output as that original OR.

3. Transform the final OR in the same way. Its bottom input is supplied in complemented form by replacing the bottom AND with NAND N3. Its other input must be the complement of N4’s output, which is produced by NAND N5 with both input pins tied to N4. NAND N6 then implements the final OR through De Morgan’s law.

4. Draw and connect the complete six-gate replacement:

N1 = NAND(a,b)
N2 = NAND(c,d)
N3 = NAND(e,f)
N4 = NAND(N1,N2)
N5 = NAND(N4,N4)
Y  = N6 = NAND(N5,N3)

a,b ---> N1 --\
               N4 ---> N5 (both inputs tied) --\
c,d ---> N2 --/                                  N6 ---> Y
e,f ---> N3 -----------------------------------/

5. Check the physical restrictions. Gates N1–N6 are all two-input NAND gates. Tying the two inputs of N5 together implements an inverter and still uses one allowed two-input NAND gate. There are exactly six gates, no hidden NOT gates and no three-input gates. This is a local circuit transformation, without first expressing the original switching function. A separate exhaustive simulation over the 64 external input assignments confirms equivalence.

Original paper, page 7

Descriptive
Report issue

Self-duality of a three-variable function

Boolean Algebra & Logic Gates

Question 10(a), GATE 2001: f(x,y,z)=Σm(0,1,2,4). Determine whether f is self-dual.

Task: Decide whether f is self-dual and justify the answer.
Question 10(a), GATE 2001: f(x,y,z)=Σm(0,1,2,4). Determine whether f is self-dual.

Task: Decide whether f is self-dual and justify the answer.
Tap to enlarge
Shared context

f(x,y,z)=Σm(0,1,2,4). Determine whether f is self-dual.

Answer & solution

Answer: Yes; f(x,y,z)=¬f(¬x,¬y,¬z). (no official key was published)

1. Self-duality requires complementary input vectors to produce complementary outputs. For three variables, complementing every input bit maps minterm index i to 7−i.

2. The complementary pairs are (0,7), (1,6), (2,5), and (3,4). The given on-set {0,1,2,4} contains exactly one member of each pair.

3. Thus whenever f is 1, its complementary input has value 0; and whenever f is 0, its complementary input has value 1. This proves the identity for all eight input vectors.

4. Having four ones alone would not prove self-duality: their distribution across complement pairs matters. Here all four pairs satisfy the required condition.

Original paper, page 8

2 marks · MCQ
Report issue

Solving simultaneous Boolean constraints

Boolean Algebra & Logic Gates

Question 2.10, GATE 2000: Find a listed solution(x,y,z,w) to x+y+z=1,xy=0,xz+w=1,xy+z′w′=0. Choices0100,1101,1011,1000; + means OR.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: xy=0 immediately rejects 1101. For 0100, xz+w=0, so it fails the third equation. The same third equation rejects 1000.

Step 2: For 1011, x+y+z=1,xy=0,xz+w=1, and xy+z′w′=0+0·0=0. It satisfies all four.

Thus C is the listed solution. The equations can have other solutions not listed, so this checks the requested candidate rather than asserting a unique solution over all sixteen assignments.

Original paper, page 4

1 mark · MCQ
Report issue

Which gate expression is not inversion

Boolean Algebra & Logic Gates

Question 1.7, GATE 1999: Which is not NOT x: x NAND x, x NOR x, x NAND 1, or x NOR 1?
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Compute each expression directly. x NAND x=¬(x·x)=¬x; x NOR x=¬(x+x)=¬x; x NAND 1=¬x. But x NOR 1=¬(x+1)=0 for both possible x values. At x=0 that differs from NOT x=1, so D is the non-inverter. Tying the inputs together and tying an input to a constant are different operations.

Original paper, page 1

1 mark · MCQ
Report issue

Repeated XOR parity

Boolean Algebra & Logic Gates

Question 1.13, GATE 1998: A bitstring B is XORed with itself n times. What happens, with D saying unchanged for even n?
Tap to enlarge
Your answer
Answer & solution

Answer: D if n counts XOR operations (no official key was published)

XOR satisfies B⊕B=0 and 0⊕B=B. Starting from B, one additional XOR produces 0, two produce B, and so on. Hence after n XOR operations the result is B for even n and 0 for odd n, supporting D. If the diagram’s “n times” instead counts the number of copies of B, the parity reverses: even copies give 0. Neither case complements B or divides it by 2. The operation-count versus operand-count ambiguity is retained.

Original paper, page 2

2 marks · MCQ
Report issue

Commutative but nonassociative operator

Boolean Algebra & Logic Gates

Question 2.8, GATE 1998: Which is commutative but not associative: AND, OR, NAND, XOR?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

NAND is symmetric in its arguments because ¬(ab)=¬(ba), so it is commutative. To test associativity, take a=0, b=1, c=1. Then (0 NAND 1) NAND 1=1 NAND 1=0, while 0 NAND(1 NAND 1)=0 NAND 0=1. The two groupings differ, proving nonassociativity. AND, OR and XOR are associative as well as commutative. Thus C; a single counterexample is enough to refute an asserted universal associative law.

Original paper, page 4

Descriptive
Report issue

Four implication gates for XOR

Boolean Algebra & Logic Gates

Question 5(a), GATE 1998: For I(x,y)=¬x∨y, realize f=¬x·y+x·¬y using implication gates. Both the GFG and GateForum reproductions explicitly require four implication gates. Neither reproduction explicitly provides a constant-zero input.
Tap to enlarge
Answer & solution

Answer: With constant 0: p=I(x,y), q=I(y,x), r=I(q,0), f=I(p,r). Without 0, impossible. (no official key was published)

The requested function is XOR. A four-gate construction satisfies that requirement if one input can be tied to Boolean 0:

G1: p = I(x,y)
G2: q = I(y,x)
G3: r = I(q,0)
G4: f = I(p,r)

Wire x and y to G1 in that order and to G2 in the opposite order. Connect G2's output and a grounded input to G3. Connect G1's output and G3's output to G4, in that order. This netlist is an unambiguous gate-level schematic with fan-out allowed.

Since p=¬x∨y and q=¬y∨x, r=¬q. Therefore f=¬p∨r=¬(¬x∨y)∨¬(¬y∨x)=x¬y∨y¬x, as required. The truth table provides a direct check:

x y | p q r | f
0 0 | 1 1 0 | 0
0 1 | 1 0 1 | 1
1 0 | 0 1 0 | 1
1 1 | 1 1 0 | 0

The grounded input is essential, not an unmentioned extra implication gate. Without constant 0 or another non-1-preserving primitive, no finite acyclic circuit of implication gates can realize XOR. On x=y=1, every primary input is 1; every gate whose inputs are 1 outputs I(1,1)=1. Induction through the circuit makes its final output 1, contradicting XOR(1,1)=0. A constant 1 does not fix this problem. Thus the bare statement is impossible, while the conventional hardware interpretation allowing a ground connection admits the four-gate design above.

Original paper, page 6

Descriptive
Report issue

Functional completeness of implication

Boolean Algebra & Logic Gates

Question 5(b), GATE 1998: Show that the implication gate I(x,y)=¬x∨y is functionally complete. State any necessary extra resource.
Question 5(b), GATE 1998: Show that the implication gate I(x,y)=¬x∨y is functionally complete. State any necessary extra resource.
Tap to enlarge
Answer & solution

Answer: Implication alone is not complete; {implication,0} is complete. (no official key was published)

Taken literally, the claim is false. Implication preserves the Boolean value 1: I(1,1)=1. Any formula built from variables using only implication consequently outputs 1 when all its variables are 1, by structural induction. Such formulas cannot implement NOT, which sends 1 to 0, or the constant-zero function. Since functional completeness requires every Boolean function, implication alone fails. Producing constant 1 as I(x,x) does not remove this obstruction.

If a Boolean-zero input is supplied, completeness follows constructively. First implement NOT by ¬x=I(x,0). Then implement OR by x∨y=I(I(x,0),y). NOT and OR form a complete basis: for example x∧y=¬(¬x∨¬y), and any Boolean truth table can be expressed as a disjunction of conjunctions of literals. Therefore arbitrary Boolean functions can be realized using implication gates and the constant 0.

An equally direct complete primitive is NAND: I(x,I(y,0))=¬x∨¬y=¬(x∧y). Because NAND is functionally complete, this two-implication construction proves the same result. These are proofs of completeness of {I,0}, not of {I} alone. Both printed papers omit an explicit constant-zero assumption, so the necessary qualification must be retained rather than supplying a false proof of the literal claim.

Original paper, page 6

1 mark · MCQ
Report issue

Composing an implication-like operator

Boolean Algebra & Logic Gates

Question 2.1, GATE 1997: Define x*y=¬x+y with Boolean OR+. Let z=x*y. Find z*x.
Tap to enlarge
Your answer
Answer & solution

Answer: B: x (no official key was published)

Substitute z=¬x+y. Then z*x=¬z+x=¬(¬x+y)+x. De Morgan gives¬(¬x+y)=x¬y. Finally x¬y+x=x by absorption. Thus B. A truth-table check gives 0 for x=0 and 1 for x=1 regardless of y. The custom star is not ordinary multiplication, so the definition must be substituted before simplifying.

Original paper, page 2

2 marks · MCQ
Report issue

Completing an AND-OR network

Boolean Algebra & Logic Gates

Question 5.5, GATE 1997: f=(f1 AND f2) OR f3, with f1 minterms{8, 9, 10}, f2{7, 8, 12, 13, 14, 15}. Forum gives target f={8, 9}; GFG prints{7, 9}. Find f3 among listed choices.
Tap to enlarge
Your answer
Answer & solution

Answer: The printed target is impossible (no official key was published)

The AND term is the intersection of the two minterm sets, namely{8}. Therefore the OR output must include 8 regardless of f3. Of the listed candidates, only{9} qualifies, B. The paper’s target{7, 9} excludes 8 and cannot be produced by this network. This material source disagreement is preserved; the answer is not an official-key match or a silent replacement of the paper’s output.

Original paper, page 5

2 marks · Descriptive
Report issue

Output stuck-at-zero error count

Boolean Algebra & Logic Gates

Question 71(b), GATE 1997: f=(¬w+y)(¬x+y)(w+¬x+z)(¬w+z)(¬x+z), where + is Boolean OR, juxtaposition is AND, and ¬ is complement. If the output line is stuck at 0, for how many input combinations is the output incorrect?
Question 71(b), GATE 1997: f=(¬w+y)(¬x+y)(w+¬x+z)(¬w+z)(¬x+z), where + is Boolean OR, juxtaposition is AND, and ¬ is complement. If the output line is stuck at 0, for how many input combinations is the output incorrect?
Tap to enlarge
Answer & solution

Answer: 7 of the 16 input combinations. (no official key was published)

A stuck-at-zero output differs from the correct circuit exactly on inputs for which f should be 1. Inputs where f=0 still produce the correct visible output even though the circuit is faulty. First simplify the function to f=¬w¬x+yz using Boolean algebra.

Count the satisfying assignments by inclusion-exclusion. The term ¬w¬x fixes w=x=0 and leaves y,z free, giving four inputs. The term yz fixes y=z=1 and leaves w,x free, also giving four inputs. Their intersection fixes w=x=0,y=z=1, so that single input was counted twice. The number of distinct true inputs is 4+4−1=7.

In wxyz binary order, the erroneous inputs are 0000,0001,0010,0011,0111,1011,1111, corresponding to minterms 0,1,2,3,7,11,15. On each, the healthy output is 1 and the faulty output is 0. The other nine combinations have healthy output 0 and therefore do not expose this fault.

This count concerns one stuck-at fault on the final output line. It is not the count of faulty internal signals, nor a probability unless an input distribution is supplied. If all 16 inputs are equally likely, the observable error probability would be 7/16, but the requested answer is the integer 7.

Original paper, page 10

2 marks · MCQ
Report issue

Boolean equations and complement scope

Boolean Algebra & Logic Gates

Question 2.5, GATE 1995: Solve ¬A+AB=0, AB=AC, AB+A¬C+CD=¬C·D in GFG. GateForum instead appears to print ¬(CD) on the last right side.
Tap to enlarge
Your answer
Answer & solution

Answer: A: (1,0,0,1) (no official key was published)

The first equation is an OR equal to zero, forcing ¬A=0 and AB=0. Hence A=1 and B=0. The second equation then forces C=0. Substituting into the third leaves 1=D under the reading ¬C·D, so D=1. Complement scope is therefore a material the paper difference, not a cosmetic notation choice.

Original paper, page 3

Descriptive
Report issue

Implement complemented inputs with NAND

Boolean Algebra & Logic Gates

Question 15(a), GATE 1995: Implement Z=¬A+¬B+C using an inverter and a NAND gate. Here + means OR; both A and B carry complement bars.
Tap to enlarge
Answer & solution

Answer: Invert C; feed A,B,¬C to a three-input NAND. (no official key was published)

De Morgan’s law gives ¬(A·B·¬C)=¬A+¬B+¬¬C=¬A+¬B+C. Therefore make the intermediate wire N=NOT(C) with the inverter, and connect A, B and N to a three-input NAND whose output is Z.

An exact circuit netlist is N := NOT C; Z := NAND3(A,B,N). The inverter is on C, even though the displayed formula has bars on A and B: the NAND’s output inversion supplies those two complements and changes the complement of its third input back into C.

As a truth-table check, the required OR expression is zero only when A=1, B=1 and C=0. Then N=1, all three NAND inputs are 1, and the output is 0. For every other assignment at least one NAND input is 0 and the output is 1. This uses a three-input NAND; restricting the available NAND to two inputs would require a different multi-gate implementation, which the statement does not specify.

Original paper, page 7

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

Descriptive
Report issue

XNOR identities

Boolean Algebra & Logic Gates

Question 4(a.i), GATE 1994: Let A*B = AB + A̅B̅. If C=A*B, evaluate A*A.
Question 4(a.i), GATE 1994: Let A*B = AB + A̅B̅. If C=A*B, evaluate A*A.
Tap to enlarge
Answer & solution

Answer: 1 (no official key was published)

1. The operation is equivalence (XNOR): it is 1 exactly when its inputs agree.

2. Substitute B=A: A*A=AA+A̅A̅=A+A̅=1.

Original paper, page 4

Report issue

XNOR identities

Boolean Algebra & Logic Gates

Question 4(a.ii), GATE 1994: Let A*B = AB + A̅B̅ and C=A*B. Evaluate C*A.
Question 4(a.ii), GATE 1994: Let A*B = AB + A̅B̅ and C=A*B. Evaluate C*A.
Tap to enlarge
Answer & solution

Answer: B (no official key was published)

1. When A=0, C=B̅; hence C*0=C̅=B.

2. When A=1, C=B; hence C*1=C=B. These exhaust the Boolean values of A.

3. Equivalently two equivalence operations cancel the same A, leaving B.

Original paper, page 4

Descriptive
Report issue

Boolean simultaneous equations

Boolean Algebra & Logic Gates

Question 4(b), GATE 1994: Solve AB+A̅C=1 and AC+B=0 for Boolean A,B,C.
Tap to enlarge
Answer & solution

Answer: A=0, B=0, C=1 (no official key was published)

1. An OR is zero only if both terms are zero, so B=0 and AC=0.

2. The first equation becomes A̅C=1. Both factors must be one: A=0 and C=1.

3. This assignment also satisfies AC=0, proving existence and uniqueness.

Original paper, page 4

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

Report issue

Commutative but nonassociative gate

Boolean Algebra & Logic Gates

Question 2(i), GATE 1992: Which operation is commutative but not associative: AND, OR, XOR, NAND?
Question 2(i), GATE 1992: Which operation is commutative but not associative: AND, OR, XOR, NAND?
Tap to enlarge
Select all that apply
Answer & solution

Answer: D: NAND (no official key was published)

NAND(a, b)=¬(ab), unchanged when a and b are exchanged, so it is commutative. To refute associativity choose a=0, b=1, c=1. Then NAND(NAND(0, 1), 1)=NAND(1, 1)=0, whereas NAND(0, NAND(1, 1))=NAND(0, 0)=1. AND, OR and XOR are associative as well as commutative. A single counterexample suffices to disprove the NAND associativity identity for all triples.

Original paper, page 1

2 marks · Other
Report issue

Complementary switch paths

Boolean Algebra & Logic Gates

Question 1(i), GATE 1991: The GFG figure connects x through controls ¬a, b and y through controls a, ¬b, joining at f. Upper a and lower b have inversion bubbles; Forum omits these bubbles. Find f.
Question 1(i), GATE 1991: The GFG figure connects x through controls ¬a, b and y through controls a, ¬b, joining at f. Upper a and lower b have inversion bubbles; Forum omits these bubbles. Find f.
Tap to enlarge
Answer & solution

Answer: x¬ab+ya¬b in the Boolean switching model; no driven output for a=b without an additional convention (no official key was published)

The upper a-controlled switch has an inversion bubble while its b switch does not. This path conducts when a=0, b=1, passing x. The lower path has the opposite control polarities, so it conducts when a=1, b=0 and passes y. Combining those path contributions gives f=x¬ab+ya¬b. The paths are never simultaneously enabled, so this the reading avoids conflicting input drivers. However, when a=b neither path conducts: a physical pass-transistor output is floating or retains charge unless a pull device or storage convention is specified. Thus treating disabled paths as Boolean zero is a switching-algebra convention.

Original paper, page 1