GATE / CS ARCHIVE

GATE CSE 2009 / QUESTION 5

Octal to hexadecimal conversion

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2009 paper

GATE 2009, Q5 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 5, GATE 2009: Convert octal 1217 to the equivalent choice: A hexadecimal 1217; B hexadecimal 028F; C decimal 2297; D hexadecimal 0B17.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step through it (10 steps)

Octal 1217 expands to binary 001 010 001 111. Grouping in fours gives 0010 1000 1111, hexadecimal 28F, or 028F with a leading zero. Hence B. Its decimal value is 512+128+8+7=655.

Using place values, octal 1217 equals 1·8³+2·8²+1·8+7=512+128+8+7=655. Divide into hexadecimal place values:655=2·256+8·16+15, so it is 028F hexadecimal. The same conversion follows by octal digit triples 001010001111, regrouped into binary quartets 0010 1000 1111.

Original paper, page 2