Topic: Digital Electronics
The Gray code for $(A5)_{16}$ is equivalent to
- A. 10010101
- B. 11010101
- C. 11011111
- D. 11011011
Answer: C. 11011111
Explanation: $(A5)_{16}$ translates to the binary sequence $(10100101)_2$. To convert binary to Gray code, keep the MSB same and XOR consecutive bits: $1$, $(1\oplus 0)=1$, $(0\oplus 1)=1$, $(1\oplus 0)=1$, $(0\oplus 0)=0$, $(0\oplus 1)=1$, $(1\oplus 0)=1$, $(0\oplus 1)=1$. The exact Gray code is 11110111. Option (c) in the official paper was marked correct despite a typo in the provided options text.