GATE Computer ScienceModerateGATE CS · ISRO

What is the 4-bit Gray code of the binary number 1101 (decimal 13)?

  1. A. 1110
  2. B. 1011
  3. C. 1001
  4. D. 0111

Correct answer: B. 1011

Gray = B XOR (B >> 1) = 1101 XOR 0110 = 1011.

More Digital Logic questions

Exams that ask this topic