2.6 Binary shifts Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

When are binary shifts used?

A

when multiplying or dividing binary numbers by powers of 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

multiplying binary numbers by powers of 2

A

x 2[2] shift 2 places etc.

multiplies the answer by 2 like denary multiplies by 10

a 0 is placed on the right

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

dividing binary numbers by powers of 2

A

when you divide by powers of 2 you move bits to the right - right shifts

a 0 is placed at the leftmost place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Multiply 00011110 by 2[2] [1]

A

01111000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

a) Explain how a binary number can be multiplied by 8 by shifting bits [3]

b) Complete a 3-place right shift on the binary number 10110100.
Explain why there is a loss in precision. [2]

A

a) 8 is equal to 2[3] so all the bits should be moved 3 places to the left
0s should be inserted into the three rightmost positions

b) 00010110

10110100 in denary/8 is 22.5

00010110 in denary is 22, which is less than 22.5

this is because the answer is given as the nearest lower integer in a right binary shift as the number doesn’t have decimals, so some precisions is lost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly