Professional Documents
Culture Documents
Binary Shifts Answers
Binary Shifts Answers
0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 1
Write the number 17 in binary. Then Write the number 64 in binary. Then
logical shift right by 1: logical shift left by 3:
0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Arithmetic shifts
Arithmetic shift left by 1: 1 1 0 1 0 1 0 1
1 1 0 1 0 1 0 1
1 1 1 1 0 1 0 1
1 0 1 0 1 0 1 0
0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0
1 1 1 1 1 1 1 0
0 0 0 0 1 1 1 1
1 1 1 1 1 1 1 1