- Home/
- GATE ELECTRONICS/
- GATE EC/
- Article
11011 in Gray Code Equal to Binary
By BYJU'S Exam Prep
Updated on: September 25th, 2023
Choose the correct answer from the options given below and also provide the detailed solution:
11011 in Gray code equal to binary
A. 10110
B. 01001
C. 10010
D. 11011
Table of content
Answer: C. 10010
11011 in Gray code equal to binary will be 10010.
Solution:
Let, G4G3G2G1G0 and b4b3b2b1b0 be the 5-bit Gray code and the corresponding binary code respectively. By using the following formulae, we can find the binary code.
b4=G4
b3=b4⊕G0
b2=b3⊕G2
b1=b2⊕G1
b0=b1⊕G0
Given, G4G3G2G1G0 = 11011.
b4=1
b3=1⊕1=0
b2=0⊕0=0
b1=0⊕1=1
b0=1⊕1=0
=> b4b3b2b1b0=10010
Therefore, 10010 is the corresponding binary code for the given Gray code 11011. Hence, option (C) is the correct answer.