The representation of the value of a unsigned integer in hexadecimal number system is . The representation of the value of in octal number system is
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…
- A571244
- B736251
- C571247
- D136251Correct 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.