• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE-CS-2006 | Question 40

Consider numbers represented in 4-bit gray code. Let h3h2h1h0 be the gray code representation of a number n and let g3g2g1g0 be the gray code of (n + 1) (modulo 16) value of the number. Which one of the following functions is correct? A: [Tex]g_{0}(h_{3},h_{2},h_{1},h_{0})=\\sum (1,2,3,6,10,13,14,15)[/Tex] B: [Tex]g_{1}(h_{3},h_{2},h_{1},h_{0})=\\sum (4,9,10,11,12,13,14,15)[/Tex] C: [Tex]g_{2}(h_{3},h_{2},h_{1},h_{0})=\\sum (2,4,5,6,7,12,13,15)[/Tex] D: [Tex]g_{3}(h_{3},h_{2},h_{1},h_{0})=\\sum (0,1,6,7,10,11,12,13)[/Tex]

(A)

A

(B)

B

(C)

C

(D)

D

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments