Q20.Marks: +2.0UGC NET Paper 2: Computer Science 7th Dec 2023 Shift 2
Identify the code sequence :
1010
1011
1001
1000
1.BCD
2.Excess-3
3.Gray ✓ Correct
4.Excess-3 gray
Solution
The correct answer is Gray
EXPLANATION:
Gray Code: Gray code is a binary numeral system where two consecutive numbers differ by only one bit. The given sequence does not exhibit this characteristic, as the difference between consecutive numbers is not consistently one bit.
MSB = Most significant bit
2MSB = Second Most significant bit
So the correct answer is Gray Code
Additional Information
BCD (Binary-Coded Decimal): BCD is a binary-encoded representation of decimal numbers. In BCD, each decimal digit is represented by its 4-bit binary equivalent. The given sequence does not follow the typical BCD pattern, as the difference between consecutive numbers is not consistent with BCD.
Excess-3: Excess-3 (XS-3) is a binary-coded decimal (BCD) code in which each decimal digit is represented by its corresponding 4-bit binary representation, and the code for each decimal digit is obtained by adding 3 to the binary representation of the decimal digit.
Excess-3 Gray: There is no widely recognized coding system known as "Excess-3 Gray." Excess-3 and Gray code are different coding systems. Excess-3 is a BCD code, whereas Gray code is a binary code where two consecutive numbers differ by only one bit.