Skip to content
Official PYQ · 1998

GATE CS 1998 Q1.13 — Boolean Algebra

Explain with AI

What happens when a bit-string is XORed with itself nn-times as shown:

[B⊕(B⊕(B⊕(B…n times]\left[B \oplus (B \oplus ( B \oplus (B \dots n \text{ times}\right]

Choose one option
View worked solution

Answer: D

When a bit-string BB is XORed with itself nn times, we perform nn XOR operations, which involves (n+1)(n + 1) occurrences of BB:

Rn=B⊕B⊕⋯⊕B⏟(n+1) timesR_n = \underbrace{B \oplus B \oplus \dots \oplus B}_{(n + 1) \text{ times}}

Using the fundamental properties of the XOR operation:

  • B⊕B=0B \oplus B = 0 (Self-inverse property)
  • B⊕0=BB \oplus 0 = B (Identity property)

Let's evaluate the result for different values of nn:

  • For n=1n = 1 (odd): B⊕B=0B \oplus B = 0
  • For n=2n = 2 (even): B⊕B⊕B=0⊕B=BB \oplus B \oplus B = 0 \oplus B = B
  • For n=3n = 3 (odd): B⊕B⊕B⊕B=0⊕0=0B \oplus B \oplus B \oplus B = 0 \oplus 0 = 0
  • For n=4n = 4 (even): B⊕B⊕B⊕B⊕B=0⊕0⊕B=BB \oplus B \oplus B \oplus B \oplus B = 0 \oplus 0 \oplus B = B

Thus, when nn is even, the expression simplifies to BB, meaning the bit-string remains unchanged.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Boolean Algebra questions