GATE | GATE-CS-2005 | Question 90

The hexadecimal representation of 6578 is
(A) 1AF
(B) D78
(C) D71
(D) 32F


Answer: (A)

Explanation: We can first convert to Binary, we get 110 101 111. Then convert binary to base 16, we get 1AF (0001 1010 1111).

(657)base 8=

Writing binary of each digit=>  110=6



=> 101=5

=> 111=7

Adding extra 0’s I beginning to make groups of 4 binary digits each

000110101111= 0001 1010 1111

In octal

  • 0001 =1
  • 1010 =A
  • 1111 =F

So Ans is (A) part.

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.