The Gray-code equivalent of the binary number 1010 is:
2025
The Gray-code equivalent of the binary number 1010 is:
- A.
1100
- B.
1111
- C.
1010
- D.
0101
Attempted by 43 students.
Show answer & explanation
Correct answer: B
For binary 1010, the Gray-code bits are 1, 1 XOR 0 = 1, 0 XOR 1 = 1, and 1 XOR 0 = 1. Hence the Gray code is 1111.