Question
Which digital code allows only one bit to change between sequential code values?
Answer Options
- A) Binary Coded Decimal Code
- B) Extended Binary Coded Decimal Interchange Code
- C) Extended ASCII
- D) Gray code
Correct Answer: D
Explanation
Standard binary code is often sequential (e.g., 001 ightarrow 010 ightarrow 011), which means that multiple bits can change simultaneously between adjacent values. In electromechanical systems or analog-to-digital converters, this simultaneous change can lead to momentary erroneous outputs (glitches) if the bits do not switch at precisely the same time.
Gray code is a special binary-based code that is designed to prevent this transitional error. The defining characteristic of the Gray code is that it is a reflective code where, in the transition between any two adjacent sequential code values, only one bit is allowed to change. This minimizes errors in encoding position or rotation in systems like shaft encoders and digital electronics.
This topic was automatically created to facilitate community discussion about this exam question. Feel free to share study tips, memory tricks, or additional explanations!