Skip to main content

GATE CSE 2017Digital Logic › Number Systems & RepresentationVerified

GATE CSE 2017 PYQ: The representation of the value of a 16 -bit 16\text{-bit} 16 -bit unsigned integer X X X in hexadecimal…

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

  1. A
    571244
  2. B
    736251
  3. C
    571247
  4. D
    136251
    Correct answer

Answer

(D) 136251 136251 136251

Approach

Hexadecimal and octal are both powers-of-two bases (16 = $2^4, 8 = 2^3)$, so the fastest route is to expand each hex digit to exactly 4 binary bits and then regroup the resulting bit string into sets of 3 bits starting from the least-significant bit, padding the most-significant group with leading zeros only if needed. Each 3-bit group converts directly to one octal digit.

The hexadecimal number BCA9 converts to binary 1011 1100 1010 1001, which regrouped into 3-bit blocks from the right yields 1 011 110 010 101 001, i.e., octal 136251. Decimal verification confirms both equal 48297, so option D is correct.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.