edited by
11,706 views
14 14 votes

The logic circuit given below converts a binary code $Y_1Y_2Y_3$ into 

  1. Excess-$3$ code
  2. Gray code
  3. $\text{BCD}$ code
  4. Hamming code

4 Answers

Best answer
15 15 votes
Y X
000 000
001 001
010 011
011 010
100 111
101 110
110 100
111 101

$X$ is a GRAY code as for consecutive numbers the change in bit position is only 1. 

From Wikipedia,

More formally, a Gray code is a code assigning to each of a contiguous set of integers, or to each member of a circular list, a word of symbols such that each two adjacent code words differ by one symbol. These codes are also known as single-distance codes, reflecting the Hamming distance of 1 between adjacent codes. There can be more than one Gray code for a given word length, but the term was first applied to a particular binary code for the non-negative integers, the binary-reflected Gray code, or BRGC, the three-bit version of which is shown above.

So, the given code is not GRAY code as the codes for 3-4, as well as 7-0 differs by 2 bits and not 1. It is also neither BCD (same as binary for 3 bits) nor Excess-3. So, answer should be none of these. 

selected by
1 1 vote
well when we have Gray code,and we convert from gray to binary code then this circuit will work perfectly taking any example u can ascertain the statement ,since no option says something like this ,question become wrong
0 0 votes
Ans is c but in isro key answer is b.

 

Because for gray code no output take as a input but her it is given so it is not gray code

 In bcd code we take output as a input for next gate other then most significant bit
0 0 votes
Y X
110 100
000 000
001 001
111 101
100 111
010 011
011 010
101 110

X is gray Code.

Hence, Answer is B. Gray code

Answer:
Position:
Show:

Related questions

11 11 votes
5 answers 5 answers
10.5k
10.5k views
go_editor asked Jul 6, 2016
10,512 views
The Excess-$3$ code is also calledCyclic Redundancy CodeWeighted CodeSelf-Complementing CodeAlgebraic Code
8 8 votes
3 answers 3 answers
8.5k
8.5k views
ajit asked Sep 20, 2015
8,543 views
Which of the following is termed as minimum error code ?Binary codeGray codeExcess-$3$ codeOctal code
129 129 votes
11 answers 11 answers
32.9k
32.9k views
Rucha Shelke asked Sep 26, 2014
32,862 views
Consider numbers represented in 4-bit Gray code. Let $ h_{3}h_{2}h_{1}h_{0}$ be the Gray code representation of a number $n$ and let $ g_{3}g_{2}g_{1}g_{0}$ be the Gray...
1 1 vote
1 1 answer
89
89 views
TryhardGuy asked Jun 21
89 views
For weighted decimal codes, is it guarantted for a decimal digit to have a unqiue code or representation in binary? If the weights assigned to places can be arbitrary, is...