← 2018 Paper 2
UPSC 2018 Maths Optional Paper 2 Q6b — Step-by-Step Solution
15 marks · Section B
Number systems · Numerical Analysis · asked 7× in 13 yrs · Read the full method →
Question
Find the equivalent of numbers given in a specified number system to the system mentioned against them:
- (i) (111011⋅101)2 to decimal system
- (ii) (1000111110000⋅00101100)2 to hexadecimal system
- (iii) (C4F2)16 to decimal system
- (iv) (418)10 to binary system
Technique
Positional expansion (binary→decimal, hex→decimal); nibble-grouping from the radix point (binary→hex); repeated division by 2 (decimal→binary).
Solution
(i) (111011.101)2→ decimal
Positional expansion (powers of 2, with the binary point):
integer1⋅32+1⋅16+1⋅8+0⋅4+1⋅2+1⋅1+fraction1⋅21+0⋅41+1⋅81.
=(32+16+8+2+1)+(0.5+0.125)=59+0.625.
(111011.101)2=(59.625)10.
(ii) (1000111110000.00101100)2→ hexadecimal
Group bits into nibbles (4 bits) outward from the binary point, padding the ends with zeros.
Integer part 1000111110000 → pad left to 16 bits: 0001000111110000
0001=1,0001=1,1111=F,0000=0 ⇒ 11F0.
Fraction part 00101100 (already 8 bits) → 00101100
0010=2,1100=C ⇒ 2C.
(1000111110000.00101100)2=(11F0.2C)16.
(iii) (C4F2)16→ decimal
With C=12, F=15:
12⋅163+4⋅162+15⋅16+2=12⋅4096+4⋅256+15⋅16+2.
=49152+1024+240+2=50418.
(C4F2)16=(50418)10.
(iv) (418)10→ binary
Repeated division by 2 (remainders read bottom-up):
418÷2=209 r0, 209÷2=104 r1, 104÷2=52 r0, 52÷2=26 r0,
26÷2=13 r0, 13÷2=6 r1, 6÷2=3 r0, 3÷2=1 r1, 1÷2=0 r1.
Reading remainders upward: 110100010.
Answer
(418)10=(110100010)2.