Skip to content

GATE CS 2005 Q17 — Number Representations (Fixed and Floating Point)

Explain with AI

The hexadecimal representation of (657)8 is:

Choose one option
View worked solution

Answer: A

To convert an octal number to its hexadecimal equivalent, the most efficient method is to first convert the octal number to binary, and then group the binary digits into groups of four to find the hexadecimal representation.

Step 1: Convert Octal to Binary
Each octal digit corresponds to a 33-bit binary number:

  • 6→1106 \rightarrow 110
  • 5→1015 \rightarrow 101
  • 7→1117 \rightarrow 111
Combining these, we get:
(657)8=(110 101 111)2(657)_8 = (110\ 101\ 111)_2

Step 2: Convert Binary to Hexadecimal
Group the binary bits into groups of four, starting from the right (least significant bit). Add leading zeros if necessary: 0001⏟11010⏟A1111⏟F\underbrace{0001}_{1} \quad \underbrace{1010}_{\text{A}} \quad \underbrace{1111}_{\text{F}} Converting each 44-bit group to its hexadecimal digit:

  • 00012=1160001_2 = 1_{16}
  • 10102=A161010_2 = \text{A}_{16}
  • 11112=F161111_2 = \text{F}_{16}
Therefore, (657)8=(1AF)16(657)_8 = (1\text{AF})_{16}.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions