The representation of the value of a 16-bit unsigned integer X in hexadecimal number system is BCA9. The representation of the value of X in octal number system is
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2017 Set 2 · Q1
Time
Select one answerSingle correct
Solution
Official answer: D) 136251
Number Representation and ArithmeticTo convert the hexadecimal number to octal:
First, convert each hexadecimal digit to its -bit binary equivalent:
Combining these gives the 16-bit binary representation:
Group the binary digits into sets of bits starting from the least significant bit (right to left), padding with leading zeros if necessary:
Convert each 3-bit group to its octal digit:
Thus, the octal representation is 136251, which corresponds to option D.
Try the question first, then check your work.
Examiner trap
Convert the hexadecimal number to binary (4 bits per hex digit), then regroup the bits into groups of 3 from right to left to get the octal digits.
This Number Representation and Arithmetic previous year question is Q1 of the GATE CSE 2017 Set 2 paper. Find more GATE CSE PYQs on Number Representation and Arithmetic in Digital Logic, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Number Representation and Arithmetic PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Number Representation and Arithmetic has 33 GATE CSE PYQs across 20 papers from 2012 to 2026. 13 of them are 1-mark MCQs like this one, and GATE CSE 2017 Set 2 has 3.
How GATE tests Number Representation and ArithmeticIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.