GATE / CS ARCHIVE

GATE CSE 2017 SET 2 / QUESTION 1

GATE CSE 2017 Set 2 Q1

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2017 Set 2 paper

GATE 2017 Set 2, Q1 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 1, GATE 2017: A 16-bit unsigned integer is BCA9 in hexadecimal. Give its octal representation. A:571244. B:736251. C:571247. D:136251.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step through it (13 steps)

1. Convert each hexadecimal digit into four binary bits: B=1011, C=1100, A=1010, 9=1001. The number is therefore 1011110010101001₂.

2. Octal groups binary bits in threes, starting at the least-significant end. Add two leading zeros only for grouping: 001 011 110 010 101 001.

3. These groups are 1,3,6,2,5,1, yielding 136251₈, option D. A decimal check is BCA9₁₆=48297, and 1·8⁵+3·8⁴+6·8³+2·8²+5·8+1=48297. Leading padding does not change the value.

Original paper, page 2 · Answer key