What is bit shifting? Flashcards
1
Q
What is bit shifting?
A
an operation done on all the bits of a binary value in which they are moved by a determined number of places to either the left or right
2
Q
What is 0010 shifted to the right once?
A
0001
3
Q
What is 0010 shifted to the left once?
A
0100
4
Q
What is 00100110 shifted to the right twice?
A
00010011
5
Q
What is 11100010 shifted to the left twice?
A
10001000