Skip to content
Solved Examples · Example 8

Q.Convert (1110)2(1110)_2 into gray code using XOR gates.

Karnataka PUCTextbookNumericImportance★★★★★est
23% · 36/160 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

[!TLDR]

Copy the MSB and XOR each adjacent binary-bit pair (here realised by three XOR gates) to get (1110)2=(1001)G(1110)_2 = (1001)_G.

For b3b2b1b0=1110b_3b_2b_1b_0 = 1110:

  • g3=b3=1g_3 = b_3 = 1 (the MSB line passes straight through)
  • g2=b3⊕b2=1⊕1=0g_2 = b_3 \oplus b_2 = 1 \oplus 1 = 0
  • g1=b2⊕b1=1⊕1=0g_1 = b_2 \oplus b_1 = 1 \oplus 1 = 0 …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.