Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Binary arithmetic and hexadecimal

Unit 3 Fundamentals of data representation

Homework 2: Binary arithmetic and hexadecimal

1. Convert the following binary values into decimal: [2]

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

g. Binary 00110111 to Hex 37

h. Binary 11111111 to Hex FF

4. Multiply the binary value 0011 0010 by 2, by using a logical shift.

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

6. Add 00100111 to 00101010. You should include your working. [2]

0 0 1 0 0 1 1 1
+ 0 0 1 0 1 0 1 0
1 0 1 0 0 1

7. Add 00100111 to 00111010. You should include your working. [2]

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

You might also like