Topic: Digital Circuits
Gray code for number 7 is
- A. 1100
- B. 1001
- C. 0110
- D. 0100
Answer: D. 0100
Explanation: The binary representation for 7 is 0111. To convert to Gray code: keep the MSB (0). Next bit = 0 XOR 1 = 1. Next bit = 1 XOR 1 = 0. Next bit = 1 XOR 1 = 0. Thus, the Gray code is 0100.