Skip to content
Official PYQ · 2017

GATE CS 2017 Set 2 Q1 — Number Representations (Fixed and Floating Point)

Explain with AI

The representation of the value of a 16-bit16\text{-bit} unsigned integer XX in hexadecimal number system is BCA9\textsf{BCA9}. The representation of the value of XX in octal number system is

Choose one option
View worked solution

Answer: D

To convert the 16-bit16\text{-bit} unsigned integer XX from hexadecimal to octal, we can first convert it to binary and then group the binary digits into sets of three.

Step 1: Convert Hexadecimal to Binary
Each hexadecimal digit corresponds to a 4-bit4\text{-bit} binary representation:

  • B16=10112\text{B}_{16} = 1011_2
  • C16=11002\text{C}_{16} = 1100_2
  • A16=10102\text{A}_{16} = 1010_2
  • 916=10012\text{9}_{16} = 1001_2

Combining these, we get the 16-bit16\text{-bit} binary representation of XX: X=1011 1100 1010 10012X = 1011\,1100\,1010\,1001_2

Step 2: Convert Binary to Octal
Group the binary digits in sets of three, starting from the right (least significant bit). We pad with leading zeros on the left to complete the leftmost group:

001⏟1  011⏟3  110⏟6  010⏟2  101⏟5  001⏟1\underbrace{001}_{1} \; \underbrace{011}_{3} \; \underbrace{110}_{6} \; \underbrace{010}_{2} \; \underbrace{101}_{5} \; \underbrace{001}_{1}

Converting each 3-bit3\text{-bit} group to its decimal equivalent gives the octal representation: X=1362518X = 136251_8

Therefore, the correct option is D.

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

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