Computer Science - Digital Computer Electronics - Discussion

Discussion Forum : Digital Computer Electronics - Section 1 (Q.No. 26)
26.
The Gray code for decimal 7 is
0111
1011
0100
0101
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
5 comments Page 1 of 1.

Richa said:   1 decade ago
Only Change One Bit.

In Gray code, there is only one bit location different between numeric increments, which makes mechanical transitions from one digit to the next less error prone. The following chart shows normal binary representations from 1 to 10 and the corresponding Gray code.

D Binary Gray-Code
0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
6 0110 0101
7 0111 0100
8 1000 1100
9 1001 1101
10 1010 1111

Jyothsna said:   1 decade ago
Can you please give more explanation for converting Binary code to Gray code ?

Brij said:   1 decade ago
Decimal 7 = 0111 binary.
0+1+1+1.

MSB 0 1 0 0 (add without carry).
Ans = 0100.
(1)

Rajabhupal said:   1 decade ago
Decimal 7 = 0111 binary.

Copy the 1st bit i.e. in 0111. The 1st bit is "0".

Then do the x-OR operation for bits 0111 = 0100.

x-OR = (0&1=1 and 1&1=0).

Chaithanya said:   6 years ago
Binary code for 7 is ---0111.

Gray code will be done by xor on 0111 where in xor-- ( 01--1, 10 -- 1, 00--0, 11--0).
To get Gray code add from left to right i.e
1 xor 1 ---0.
1 xor 1 --0.
1 xor 0 --1.
Last digit 0 write as it is, so the answer is 0100.

Post your comments here:

Your comments will be displayed after verification.