Which of the following is a self-complementing binary code, where adjacent codes differ in only one bit position?
Show answerHide answer
Correct answer: (C) Gray Code
Explanation
Codes in which adjacent values differ in only one bit are Gray codes; this unit-distance property is what the question describes. (Strictly, the classic self-complementing code is Excess-3, but the one-bit-change description fits only Gray code.)