Data Types Homework 3
Data Types Homework 3
Data representation
b) Add the following unsigned 8-bit binary integers: Show your working. [2]
1
0 1 1 1 1 1 0 0
1 0 0 1 1 0 1 1
1 1 1 1 0 1 1 1
c) Explain the problem that has resulted from the calculation above using 8 bits. [1]
overflow
2. Calculate the largest integer value that can be stored in three combined unsigned binary
bytes: Show your working. [2]
3 x 8 = 24
3. Show how the numbers 3 and -9 would be represented in one byte using sign and
magnitude. [1]
00000011
00001001/ 11110110
1
Homework 3 Binary arithmetic
Data representation
0 1 1 1 1 1 0 0
0 1 1 0 0 1 0 1
0 0 0 1 1 0 1 1
5. Using one byte to hold each number, with an imaginary binary point after the fourth digit,
convert the following decimal numbers into binary: [3]
b) Convert the following binary numbers to decimal, assuming three bits after the
binary point: [2]
c) What are the largest and smallest positive numbers that can be stored in one byte
assuming three bits after the point? [2]
[Total 20 marks]