You are on page 1of 4

Worksheet 3 Binary shifts & two’s complement

Unit 3 Data

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

Task 1: Logical binary shift

Complete the table below. The first row has been completed as an example.

Denary number Binary number Perform the Convert the The effect of
following logical result to denary the logical
binary shift binary shift

102 0110 0110 One left shift: 204 Double the


1100 1100 number

23 0001 0111 One left shift:

37 0010 0101 Two left shifts:

154 1001 1010 One right shift:

104 0110 1000 Two binary


shifts right:

37 0010 0101 One right shift:

154 1001 1010 One left shift:

1
Worksheet 3 Binary shifts & two’s complement
Unit 3 Data

Task 2: Two’s complement

a) Convert the following numbers between denary to two’s complement:

Denary number Two’s complement


127

-128

-127

b) Convert each of the following binary two’s complement numbers to denary.


Use the following process to convert negative two’s complement numbers:
 If it’s a negative number…
 Flip the bits
 Add one
 Work out the number in denary

i) 1000 0011

ii) 1100 0101

iii) 1011 0100

2
Worksheet 3 Binary shifts & two’s complement
Unit 3 Data

iv) 0111 0101

c) Convert each of the following denary numbers to two’s complement numbers.


Use the following process to convert negative denary numbers:
 If it’s a negative number…
 Work out the number in binary
 Flip the bits
 Add one

i) -37

ii) -96

iii) -19

3
Worksheet 3 Binary shifts & two’s complement
Unit 3 Data

iv) 17

Task 3: Arithmetic binary shifts

Complete the following table by performing the given arithmetic binary shift.

Denary number Binary number Perform the following Convert the result to
arithmetic binary shift denary

44 0010 1100 One left shift:

-98 1001 1110 One right shift:

-24 1110 1000 One right shift:

-110 1001 0010 One right shift:

You might also like