Professional Documents
Culture Documents
Data Representation Homework 2 Binary Arithmetic Hexadecimal
Data Representation Homework 2 Binary Arithmetic Hexadecimal
a. 00011011 27
b. 11100110 230
2. Which of the following binary values represents the decimal value 87? [1]
a. 01011010
b. 11000100
c. 01010111 THIS
d. 00011010
3. Convert the following values to and from Hexadecimal: (Show your working) [8]
a. Decimal 37 to Hex 25
b. Decimal 59 to Hex 3B
c. Hex 11 to Decimal 17
d. Hex 2F to Decimal 47
e. Hex 1A to Binary 26
f. Hex 16 to Binary 22
1010 [1]
1
Binary arithmetic and hexadecimal
Unit 3 Fundamentals of data representation
5. Colours in art packages are often given Hex codes as illustrated below with #00ccff. Why is
Hex used in this way rather than the actual 24-bit colour value? [2]
Because hex is easier to copy and paste from a photo editor and theyre easier to maniupulate
0 0 1 0 0 1 1 1
+ 0 0 1 0 1 0 1 0
1 0 1 0 0 1
0 0 1 0 0 1 1 1
+ 0 0 1 1 1 0 1 0
1 1 0 0 0 0 1
8. Show the result of adding the following three binary numbers. [2]
1 1 0 0 1 1
1 0 1 1 1
+ 1 0 1
= 1 0 0 1 1 1 1
[Total 20 marks]
2
Binary arithmetic and hexadecimal
Unit 3 Fundamentals of data representation