Quiz 01, Solution:
Q.1 Convert the hexadecimal number 64CD to binary, and then convert it from binary to Octal
Answer:
(64CD)16= (0110 0100 1100 1101)2
(110 010 011 001 101)8 = (62315)8
Q.2. Perform subtraction on the given unsigned numbers using 10, s complement for a and b and
signed 2’s complement for c and d. verify your answer
(a) 5637-3579
10’s complement of 3579 is 9 9 9 9
3 5 7 9
6 4 2 0
Add 1 in sum + 6 4 2 1
Add 5637 to 6421 6 4 2 1
+ 5 6 3 7
1 2 0 5 8
Discard the end carry 1 2 0 5 8
2 0 5 8
(b) 125-1900
10’s complement of 1900 is 9 9 9 9
1 9 0 0
8 0 9 9
Add 1 in sum + 8 1 0 0
Add 0125 to 8100 8 1 0 0
+ 0 1 2 5
8 2 2 5
As M<N take 10s’ comp of 2058 9 9 9 9
8 2 2 5
Add 1 in sum + 1 7 7 4
- 1 7 7 5
Q.1 Convert the hexadecimal number 64CD to binary, and then convert it from binary to Octal
Answer:
(64CD)16= (0110 0100 1100 1101)2
(110 010 011 001 101)8 = (62315)8
Q.2. Perform subtraction on the given unsigned numbers using 10, s complement for a and b and
signed 2’s complement for c and d. verify your answer
(a) 5637-3579
10’s complement of 3579 is 9 9 9 9
3 5 7 9
6 4 2 0
Add 1 in sum + 6 4 2 1
Add 5637 to 6421 6 4 2 1
+ 5 6 3 7
1 2 0 5 8
Discard the end carry 1 2 0 5 8
2 0 5 8
(b) 125-1900
10’s complement of 1900 is 9 9 9 9
1 9 0 0
8 0 9 9
Add 1 in sum + 8 1 0 0
Add 0125 to 8100 8 1 0 0
+ 0 1 2 5
8 2 2 5
As M<N take 10s’ comp of 2058 9 9 9 9
8 2 2 5
Add 1 in sum + 1 7 7 4
- 1 7 7 5