Exercise 1
Name __Key______________ Points __/20
20 Points - The following exercises will
be graded in class.
Binary to Hexadecimal
1. 1011110110 = 0010 1111 0110 = 2F6
2 2 16
2. 1001010 = 0100 1010 = 4A
2 2 16
Hexadecimal to Binary
3. BAD = 1011 1010 1101
16 2
4. 78 = 0111 1000
16 2
Hexadecimal to Decimal
5. BAD = B*162 + A*161 + D*160 = 11*162 + 10*161 + 13*160 = 11*256 + 20*26 + 13 = 298910
16
6. 78 = 7*161 + 8*160 = 120
16
Decimal to Hexadecimal
_186 _ 11 0
7. 2989 = BAD16 16/2989 16/ 186 16/ 11
10 ____ ______ __
13=D 10=A 11 = B
Binary to Decimal
8. 1011 = 1*23 + 0*22 + 1*21 + 1*20 = 8+2+1 = 1110
2
9. 100000 = 1*25 = 3210
2
Decimal to Binary
42 21 10 5 2 1 0
10. 85 = 10101012 2/85 2/42 2/21 2/10 2/5 2/2 2/1
10 __ __ __ __ _ _ _
1 0 1 0 1 0 1
31 15 7 3 1 0
10. 63 = 1111112 2/63 2/31 2/15 2/7 2/3 2/1
10 __ __ __ _ _ _
1 1 1 1 1 1
Arithmetic –
from
class discussion
Binary
___1110
12. 10100 13. 1001 14. 11 / 101010 15. 1101
+1111 -111 -11 *101
_____ ____ 100 ____
100011 10 -11 1101
11 0000
-11 +1101
0 1000001
Hexadecimal
16. 3BAD 17. 1493
+19A -BAD
____ ____
3D47 8E6
18. What is the memory address range in hexadecimal
for a computer system with a 16-bit address bus? 0000-FFFF16
19. What is the largest decimal number that can be represented in 10
bits? 11111111112 = 210-1 = 1023
20. How many bits is in a word? 16
A byte? 8