Question discussion

The binary number 10101 is equivalent to decimal number ___________.

330970Medium 2 replies 2,709 views
0
CCommunity
21
0
CCommunity
Solution:

Given: Binary number = 10101

Decimal number = ?

To convert a binary number into decimal number we have to multiply each term of the binary number individually by 2^n where n is the place value of each term.

(10101)2 = (1 × 2⁰) + (0 × 2¹) + (1 × 2²) + (0 × 2³) + (1 × 2⁴)

= 1 + 4 + 16

= (21)10

So, the decimal number is 21.

The correct option is D).21