answer is 100%

- Gray code because B1 = G1 , B2 = G1 exor G2 , B3 = G2 exor G3 , so y is Gray code

The Gateway to Computer Science Excellence

+11 votes

Best answer

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 codeis 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 assingle-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, thebinary-reflected Gray code, orBRGC, 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.

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**

–1 vote

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

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

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.3k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.1k
- Non GATE 1.5k
- Others 1.5k
- Admissions 595
- Exam Queries 576
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 17

50,647 questions

56,508 answers

195,518 comments

100,942 users