Bit Shifting Flashcards

1
Q

Bit Shifting

A

Bits can either be shifted to the left or the right. When a binary number is shifted the denary number will change. It will change based on how much it moves, but as we shift to the left each time it multiplies by 2. If we shift to the right, then the number will divide by 2 each time. This does mean that if we have a number that has half or 0.5 at the end, it will be lost when shifting. For example if a binary number equals 5 then shifting this to the right by 1 will equal 2 not 2.5.

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

Shift 00011101 3 places to the left.

A

11101—

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

Shift 00111100 2 places to the right

A

–001111

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

Divide 00011101 by 2

A

00001110

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

Multiply 00011101 by 8

A

11101000

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

Shift 00011101 1 place to the right.

A

00001110

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