Multiple choice

Consider numbers represented in 4-bit gray code. Let h3 h2 h1 h0 be the gray code representation of a number n and let g3 g2 g1 g0 be the gray code of (n + 1) (modulo 16) value of the number. Which one of the following functions is correct?

  1. g0 (h3 h2 h1 h0) = $\sum$1, 2, 3, 6, 10, 13, 14, 15
  2. g0 (h3 h2 h1 h0) = $\sum$4,9,10,11,12,13, 14,15
  3. g0 (h3 h2 h1 h0) = <$\sum$2, 4,5, 6, 7,12,13,15
  4. g0 (h3 h2 h1 h0) = $\sum$0,1,6, 7,10,11,12,13
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation