0% found this document useful (0 votes)
4 views5 pages

Assignment 1

Maths
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Assignment 1

Maths
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Assignment 1

Answers

1.(a)Convert the following binary number to decimal value

(i)000101112

128 64 32 16 8 4 2 1
0 0 0 1 0 1 1 1
0 0 0 16 0 4 2 1
16+4+2+1 = 2310

(ii)101101002

128 64 32 16 8 4 2 1
1 0 1 1 0 1 0 0
128 0 32 16 0 4 0 0
128+32+16+4 = 18010

(iii)001101112

128 64 32 16 8 4 2 1
0 0 1 1 0 1 1 1
0 0 32 16 0 4 2 1
32+16+4+2+1 = 5510

(iv)110011002

128 64 32 16 8 4 2 1
1 1 0 0 1 1 0 0
128 64 0 0 8 4 0 0
128+64+8+4 = 20410
(b) Convert the following DECIMAL number to BINARY value

(i)127

2 127
2 63 1
2 31 1
2 15 1
2 7 1
2 3 1
2 1 1
0 1
12710= 0111111112

(ii)54

2 54
2 27 0
2 13 1
2 6 1
2 3 0
2 1 1
0 1
5410 = 001101102

(iii)76

2 76
2 38 0
2 19 0
2 9 1
2 4 1
2 2 0
2 1 0
0 1
7610= 010011002
(iv) 32

2 32
2 16 0
2 8 0
2 4 0
2 2 0
2 1 0
0 1
3210 = 001000002

2. Convert the following decimal numbers to equivalent binary numbers.

(i) 512

2 512
2 256 0
2 128 0
2 64 0
2 32 0
2 16 0
2 8 0
2 4 0
2 2 0
2 1 0
0 1
51210 = 10 000000002

(iii)100

2 100
2 50 0
2 25 0
2 12 1
2 6 0
2 3 0
2 1 1
0 1
10010 = 011001002
(ii) 1023

2 1023
2 511 1
2 255 1
2 147 1
2 73 1
2 36 1
2 18 0
2 9 0
2 4 1
2 2 0
2 1 0
0 1
102310 = 10 010 011 1112

(iv) 64

2 64
2 32 0
2 16 0
2 8 0
2 4 0
2 2 0
2 1 0
0 1
6410 = 010000002
3. Convert the following binary numbers to equivalent decimal numbers.

(i)1101102

128 64 32 16 8 4 2 1
0 0 1 1 0 1 1 0
0 0 32 16 0 4 2 0
32+16+4+2 = 5410

(ii)110002

128 64 32 16 8 4 2 1
0 0 0 1 1 0 0 0
0 0 0 16 8 0 0 0
16+8 = 2410

(iii)110112

128 64 32 16 8 4 2 1
0 0 0 1 1 0 1 1
0 0 0 16 8 0 2 1
16+8+2+1 = 2710

(iv)102

128 64 32 16 8 4 2 1
0 0 0 0 0 0 1 0
0 0 0 0 0 0 2 0
2 +0 = 210

You might also like