Which of the following is a self complementing code?
- A8421 code
- B5211 code
- CGray code
- DBinary code
Show answer and explanation
Correct answer: (b) 5211 code
Explanation
The 3321, 2421 and 5211 codes are self-complementing, because their weights add up to 9: for example, 2 + 4 + 2 + 1 = 9 and 5 + 2 + 1 + 1 = 9.