Question discussion

What is the Gray code of the binary number 1011?

1177Medium DSSSB TGT Computer Science 0 replies

What is the Gray code of the binary number 1011?

  • A1010
  • B1110
  • C1101
  • D1111
Correct answer: B

Explanation

The MSB is copied (1) and each next bit is the XOR of adjacent binary bits: 1⊕0 = 1, 0⊕1 = 1, 1⊕1 = 0, giving 1110.

Discussion 0

Nobody has replied yet. Start the discussion!