Gray code representation of (27)₁₀ is ________.
Show answerHide answer
Correct answer: (C) 10110
Explanation
27 = (11011)₂. The Gray code keeps the MSB and XORs adjacent bits: 1, 1⊕1=0, 0⊕1=1, 1⊕0=1, 1⊕1=0, giving 10110.
Correct answer: (C) 10110
Explanation
27 = (11011)₂. The Gray code keeps the MSB and XORs adjacent bits: 1, 1⊕1=0, 0⊕1=1, 1⊕0=1, 1⊕1=0, giving 10110.
This is question 38 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.