Question 38Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

Gray code representation of (27)₁₀ is ________.

  1. A11011
  2. B11100
  3. C10110
  4. D11010
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.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

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.