Topic: Digital Circuits
The logic circuit given below converts a binary code Y1 Y2 Y3 into (Circuit connects Y1 to X1, Y1 XOR Y2 to X2, Y2 XOR Y3 to X3)
- A. Excess-3 code
- B. Gray code
- C. BCD code
- D. Hamming code
Answer: B. Gray code
Explanation: The circuit describes the standard binary-to-Gray code conversion algorithm. The most significant bit is kept the same (X1 = Y1), and each subsequent Gray code bit is generated by XORing adjacent binary bits (X2 = Y1 XOR Y2; X3 = Y2 XOR Y3).