Homework 2 Binary arithmetic
and hexadecimal
Unit 2 Data
Answers
1. Convert the following binary values into denary: [2]
a. 00011011 27
b. 11100110 230
2. Circle the binary value below that represents the denary value 87. [1]
a. 01011010
b. 11000100
c. 01010111
d. 00011010
3. Convert the following values to and from Hexadecimal: (Show your working). [7]
a. Denary 37 to Hex 25
b. Denary 59 to Hex 3B
c. Hex 2F to Denary 47
d. Hex 1A to Binary 0001 1010
e. Hex 16 to Binary 0001 0110
f. Binary 0011 0111 to Hex 37
g. Binary 1101 1111 to Hex DF
4. The binary number 1110 0100 is an even number. Explain why this is the case with
reference to the rightmost bit. [2]
The rightmost bit shows the 1s column. If it is 0, then the number is even. If it is 1, then
the number is odd.
5. Colours in art packages are often given using hexadecimal as illustrated below with
#00ccff.
Explain why hexadecimal is used rather than the actual 24-bit colour value. [2]
It is easier for designers and software users to remember/write hex codes (1) rather than
a binary value of 24 bits (1).
The code only takes up six digits on the screen rather than 24 (1) so it is more easily
displayed on the GUI (1).
It is quicker/shorter/less prone to error (1) to enter a six-character hexadecimal value to
reproduce an exact colour than it is to enter a long binary value (1).
1
Homework 2 Binary arithmetic
and hexadecimal
Unit 2 Data
6. Add 00100111 to 00101010. You should include your working. [2]
1 1 1 1
0 0 1 0 0 1 1 1
+ 0 0 1 0 1 0 1 0
0 1 0 1 0 0 0 1
7. Add 00100111 to 00111010. You should include your working. [2]
1 1 1 1 1
0 0 1 0 0 1 1 1
+ 0 0 1 1 1 0 1 0
0 1 1 0 0 0 0 1
8. An error occurs when you try to add 11011001 to 11100100 and store it as an 8-bit number.
Explain the error that occurs. [2]
Overflow error (1)
An overflow error occurs when the addition requires a carry bit into the ninth bit (1)
[Total 20 marks]