Binary
Binary
Q01. What weight does the digit 7 have in each of the following numbers?
(a) 1370 (b) 6725 (c) 7051 (d) 58.72
Ans: (a) 101 (b) 102 (c) 103 (d) 10-1
Q02: Convert the binary whole number 1101101 to decimal.
Ans: 11011012 = (1 26) + (1 25) + (0 24) + (1 23) + (1 22) + (0 21) + (1 20)
= 64 + 32 + 0 + 8 + 4 + 0 + 1
= 10910
Q03: Convert the binary number 10010001 to decimal.
Ans: 100100012 = (1 27) + (0 26) + (0 25) + (1 24) + (0 23) + (0 22) + (0 21) + (1 20)
= 128 + 0 + 0 + 16 + 0 + 0 + 0 + 1 = 14510
Q04: Convert the fractional binary number 0.1011 to decimal.
Ans: 0.10112 = (1 2-1) + (0 2-2) + (1 2-3) + (1 2-4)
= 0.5 + 0 + 0.125 + 0.0625 = 0.687510
Q05: Convert the binary number 10.111 to decimal.
Ans: 10.1112 = (1 21) + (0 20) + (1 2-1) + (1 2-2) + (1 2-3)
= 2 + 0 + 0.5 + 0.25 + 0.125 = 2.87510
Q06: Determine the weight of the 1 in the binary number 10000.
Ans: 24
Q07: Convert the binary number 10111101.011 to decimal.
Ans: 10111101.0112 = (1 27) + (0) + (1 25) + (1 24) + (1 23) + (1 22) + (0) + (1 20)
+ (0) + (1 2-2) + (1 2-3)
= 128 + 0 + 32 + 16 + 8 + 4 + 2 + 0 + 1 + 0 + 0.25 + 0.125
= 191.37510
Q08: Convert each decimal number to binary by using the sum-of-weights method:
(a) 23 (b) 57 (c) 45.5
Ans: (a) 2310 = 16 + 4 + 2 + 1
= (1 24) + (0 23) + (1 22) + (1 21) + (1 20) = 101112
(b) 5710 = 32 + 16 + 8 + 1
= (1 25) + (1 24) + (1 23) + (0 22) + (0 21) + (1 20) = 1110012
(c) 45.510 = 32 + 8 + 4 + 1 + 0.5
= (1 25) + (0 24) + (1 23) + (1 22) + (0 21) + (1 20) + (1 2-1)
= 101101.12
2
Q09: Convert each decimal number to binary by using the repeated division-by-2 method
(a) 14 (b) 21
Ans: (a) 2 14
2 7 + 0 LSB
2 3 + 1
2 1 + 1
0 + 1 MSB
1410 = 11102
(b) 2 21
2 10 + 1 LSB
2 5 + 0
2 2 + 1
2 1 + 0
0 + 1 MSB
2110 = 101012
Q10: Add the following binary numbers:
(a) 11 + 11 (b) 100 + 10 (c) 111 + 11 (d) 110 + 100
Ans: 1 1 1 1 1 1
(a) 1 1 (b) 1 0 0 (c) 1 1 1 (d) 1 10
1 1 10 11 1 00
1 1 0 1 10 1 0 10 1 1 10
Q11: Perform the following binary subtractions:
(a) 11 - 1 (b) 11 – 10 (c) 111 – 100 (d) 101 – 11
Ans: 0 2
(a) 1 1 (b) 1 1 (b) 1 11 (d) 1 01
1 1 0 1 00 11
1 0 1 11 10
Q12: Perform the following binary multiplications:
(a) 11 11 (b) 101 111 (c) 1101 1010
Ans:
(a) 11 (b) 1 01 (c) 1 1 01
11 1 11 1 0 10
11 1 01 0 0 00
1 1 1 0 1 1 1 0 1
1 0 01 1 0 1 0 0 0 0
1 0 0 0 11 1 1 0 1
1 0 0 0 0 0 10