Homework 2 Binary arithmetic and hexadecimal
Unit 2 Data
Name:............................................................................ Class:................... Mark:................
1. Convert the following binary values into denary: [2]
(a) 00011011
(b) 11100110
2. Circle the binary value below that represents the denary value 87.
(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
(b) Denary 59 to Hex
(c) Hex 2F to Denary
(d) Hex 1A to Binary
(e) Hex 16 to Binary
1
Homework 2 Binary arithmetic and hexadecimal
Unit 2 Data
(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.
Because even binary numbers have a 0 a the end, odd binary numbers have a 1 at the end
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.
- Quicker to write or type
- Less likely to make errors
6. Add 00100111 to 00101010. You should include your working.
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
2
Homework 2 Binary arithmetic and hexadecimal
Unit 2 Data
7. Add 00100111 to 00111010. You should include your working.
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.
It overflows and turns into a 9-bit number
[Total 20 marks]