GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 1.13

Repeated XOR parity

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 1998 paper

GATE 1998, Q1.13 1 mark · MCQ
Report issue

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