Data representation exercise
Data representation exercise
1. (a) Draw one line from each binary value to its equivalent (same) value on the right.
(b) (i) Perform the following binary addition. Show your working.
10101010
[2]
+ 00110111
(c) Convert the signed denary value –100 into an 8-bit two’s complement binary integer.
Working.....................................................................................................................................
...................................................................................................................................................
Answer............................................................................ [1]
1
(d) Convert the denary number 251 into hexadecimal. Show your working.
Working.....................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... .......
............................................................................................................................................
Answer............................................................................ [2]
10010000
- 00111110 [2]
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) Convert the denary number 964 into Binary Coded Decimal (BCD).
.......................................................................................................................................
...................................................................................................................................
[1]
.......................................................................................................................................
...................................................................................................................................
[2]
.......................................................................................................................................
2
...................................................................................................................................
[1]
3. (a) (i) Convert the denary integer – 46 to an 8-bit two’s complement form.
...........................................................................................................................................
...................................................................................................................................... [1]
...........................................................................................................................................
...................................................................................................................................... [1]
Describe how denary integers larger than 9 can be converted into BCD.
Give an example in your answer.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
3
...................................................................................................................................... [2]
4. (a) Each of the following bytes represents an integer in two’s complement form.
-17
[1]
(iv) State in denary, the range of integer values that it is possible to represent in
two’s complement integers using a single byte.
Lowest value..................................................
Highest value..................................................
(b) (i) Convert the following denary integer into Binary Coded Decimal (BCD).
653
.................................................................................................................................. [1]
(ii) A 3-digit BCD representation has been incorrectly copied. It is shown as:
0 1 0 0 1 1 1 0 0 0 1 0
State how you can recognise that this is not a valid BCD representation.
.......................................................................................................................................
...................................................................................................................................
[1]
.......................................................................................................................................
.................................................................................................................................. [1]