02 - CSA - Tutorial - Data - Representation Excercises New
02 - CSA - Tutorial - Data - Representation Excercises New
Exercises
4. Show the octal representation of the following decimal values. Show your work.
a) 76
b) 151
c) 724
6. Convert the following decimal numbers into binary. How many bits are needed in
each case?
a) 14
b) 127
c) 249
d) 73
e) 257
7. Addition in Binary
In each case, check your answer by converting the numbers and the result into
decimal.
a) 11011 + 1101
b) 11010101 + 00111110
c) 1111 + 1
d) 111111 + 1
e) 10101010 + 01010101
b) 11100011
+ 1011101
c) 110111010
- 1011011
d) 11100011
- 1011101
11. Convert the following hexadecimal numbers into binary and decimal.
a) 3A
b) FF
c) A5
d) BD
12. Convert the following decimal numbers into hexadecimal (an easy way to do this is to
convert into binary firs).
a) 254
b) 256
c) 181
d) 99