T2 Worksheet 2

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3
At a glance
Powered by AI
The key takeaways are that binary numbers can be added using a set of rules, and the result of binary addition can be converted between binary, decimal, and hexadecimal representations.

The rules for binary addition are: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 = 0 with a carry of 1. When three 1s are added, the result is 1 with a carry of 1.

When the result of a binary addition exceeds the maximum value that can be represented with the number of bits, an overflow error occurs. For an 8-bit binary number, the maximum value is 255.

Worksheet 2 Binary arithmetic and hexadecimal

Unit 2 Data

Name:..................................................................................................... Class: .....................

Task 1: Hexadecimal conversion

(a) Denary to Hexadecimal conversion

(i) Convert denary 19 to hexadecimal: 13

(ii) Convert denary 44 to hexadecimal: 2C

(iii) Convert hexadecimal 19 to denary: 25

(iv) Convert hexadecimal A3 to denary: 163

(b) Binary to hexadecimal conversion:

(i) Convert binary 00110101 to hexadecimal: 35

(ii) Convert binary 11010111 to hexadecimal: D7

(iii) Convert hexadecimal 1E to binary: 00011110

(iv) Convert hexadecimal FF to binary: 11111111

Task 2: Binary Addition

Using rules (a)-(e) of binary addition below as a guide, work out the answers to questions 1-10.

(a) 0+0=0
(b) 0+1=1
(c) 1+0=1
(d) 1 + 1 = 0 carry 1 = 10
(e) 1 + 1 + 1 = 1 carry 1 = 11

1. Start with this simple addition. (You can use rules (a) and (b) to help you if necessary.)
Calculate the denary equivalent to check that it is correct.

8 4 2 1 Denary equivalent
0 0 1 1 = 3
+ 0 1 0 0 = + 4
= 0 1 1 1 = = 7

1
Worksheet 2 Binary arithmetic and hexadecimal
Unit 2 Data

2. Use the same techniques as you did in the last question to find the binary result.

0 0 0 1
+ 1 1 0 0
= 1 1 0 1

3. Now use rule (d) to help with this problem. Use the carry row at the top for the carried 1.

1
0 0 1 1
+ 1 0 1 0
= 1 1 0 1

4. This one will carry into a new column. Remember that like in denary addition, the last carry
just makes the number bigger and is added on to the left of the number.

1
1 0 1 0
+ 1 0 1 1
= 1 0 1 0 1

5. Use rule (e) in this question. Use the carry row again and remember: 1+1+1 = 1 carry 1.

1 1
0 1 1 0
+ 1 1 1 0
= 1 0 1 0 0

6. Now try a full 8-bit binary number. Apply the same rules as before.

1 1
1 0 0 0 1 0 1 1
+ 0 1 0 0 1 0 1 0
= 1 1 0 1 0 1 0 1

7. Here is another 8-bit number that requires you use all of the rules.

1 1 1 1
1 0 0 1 1 1 1 0
+ 0 1 0 1 1 0 1 0
= 1 1 1 1 1 0 0 0

2
Worksheet 2 Binary arithmetic and hexadecimal
Unit 2 Data

8. Now try without the help of the grid or rules (a) to (e) to refer to.

1 1 1 1
1 0 1 0 0 1 0 1
+ 0 0 1 1 1 1 0 0
= 1 1 1 0 0 0 0 1

An 8-bit binary number holds 256 different numbers – 0-255. When the result of the addition is
greater than 255, an overflow error occurs

9. Work out the answer here using all the normal rules and explain what happens.

1 1 1 1 1
1 1 1 1 0 0 1 1
+ 1 0 1 0 0 1 0 1
= 1 1 0 0 1 1 0 0 0

You might also like