Digital Electronics - Engineering

Q1:

The number of digit 1 present in the binary representation of 3 x 512 + 7 x 64 + 5 x 8 + 3 is

A 8

B 9

C 10

D 12

ANS:B - 9

3 x 512 + 7 x 64 + 5 x 8 + 3 = (2 + 1) x 29 + (4 + 2 + 1)26 + (4 + 1)23 + (2 + 1) = 210 + 29 + 28 + 27 + 26 + 25 + 23 + 21 + 1 = 210 + 29 + 28 + 27 + 26 + 25 + 23 + 21 + 20 9 term of power two Hence number of '1' is 9.