GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Reduce XOR and XNOR using parity

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

How these are solved

Expand XNOR as complemented XOR and use parity cancellation (x XOR x=0), complement parity and constants; check equivalence or counterexample for the requested expression.

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

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

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

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 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

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

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

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