Skip to content
Exercises · Q3

Q.Try the following conversions.

(i) (514)8 = (?)10
(ii) (220)8 = (?)2
(iii) (76F)16 = (?)10
(iv) (4D9)16 = (?)10
(v) (11001010)2 = (?)10
(vi) (1010111)2 = (?)10
Tamil Nadu DgeTextbookSubjective· 3mImportance★★★★★est
62% · 28/45 Questions
✓ Free question

Multiply each digit by its place value and add (for conversions to decimal); replace each octal digit by its 3-bit binary group (for octal to binary). Results: (i) 332,

(ii) 10010000,

(iii) 1903,

(iv) 1241,

(v) 202,

(vi) 87.

The idea. A number written in base r means: each digit times r raised to its position (position 0 at the right). So converting to decimal is just "multiply and add". Converting octal to binary is even easier — since 8 = 2x2x2, each octal digit expands independently into exactly 3 binary bits.

(i) (514)8 to decimal

(514)8 = 5x8^2 + 1x8^1 + 4x8^0
       = 5x64  + 1x8   + 4x1
       = 320 + 8 + 4
       = (332)10

(ii) (220)8 to binary — replace each octal digit by its 3-bit group:

2 -> 010    2 -> 010    0 -> 000
(220)8 = 010 010 000 = (10010000)2   (leading zero dropped)
Check: (10010000)2 = 128 + 16 = 144 = 2x64 + 2x8 + 0 = (220)8  correct

(iii) (76F)16 to decimal — remember F = 15:

(76F)16 = 7x16^2 + 6x16^1 + 15x16^0
        = 7x256  + 6x16   + 15x1
        = 1792 + 96 + 15
        = (1903)10

(iv) (4D9)16 to decimal — D = 13:

(4D9)16 = 4x256 + 13x16 + 9x1
        = 1024 + 208 + 9
        = (1241)10

(v) (11001010)2 to decimal — place values 128, 64, 32, 16, 8, 4, 2, 1:

(11001010)2 = 1x128 + 1x64 + 0x32 + 0x16 + 1x8 + 0x4 + 1x2 + 0x1
            = 128 + 64 + 8 + 2
            = (202)10

(vi) (1010111)2 to decimal:

(1010111)2 = 1x64 + 0x32 + 1x16 + 0x8 + 1x4 + 1x2 + 1x1
           = 64 + 16 + 4 + 2 + 1
           = (87)10

Verify all six with Python:

print(int('514', 8))          # octal string to decimal
print(bin(int('220', 8)))     # octal to binary
print(int('76F', 16))
print(int('4D9', 16))
print(int('11001010', 2))
print(int('1010111', 2))
332
0b10010000
1903
1241
202
87
Watch out

In hex conversions, first translate the letters (A=10, B=11, C=12, D=13, E=14, F=15) — forgetting that F is fifteen (not six or five) is the classic slip.

✓Final answer

(i) (514)8 = (332)10 (ii) (220)8 = (10010000)2 (iii) (76F)16 = (1903)10 (iv) (4D9)16 = (1241)10 (v) (11001010)2 = (202)10 (vi) (1010111)2 = (87)10.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.