The truth table summarized on Wikipedia here and a sigh, basic material CS 101, De Morgan Law ....
AND
0 & 0 0
0 & 1 0
100
1 & 1 1
OR
0 | 0 0
0 | eleven
1 | 0 1
0 | 0 1
Xor
0 ^ 0 0
0 ^ 1 1
1 ^ 0 1
1 ^ 1 0
A Left shift involves moving bits across from right to left, suppose:
+ - + - + - + - + - + - + - + - +
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+ - + - + - + - + - + - + - + - +
| 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | = 0x4 hexadecimal or 4 decimal or 100 in binary
+ - + - + - + - + - + - + - + - +
Shift Left by 2 places becomes
+ - + - + - + - + - + - + - + - +
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+ - + - + - + - + - + - + - + - +
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | = 0x10 hexadecimal or 16 decimal or 10000 in binary
+ - + - + - + - + - + - + - + - +
Shift Right by 1 places becomes
+ - + - + - + - + - + - + - + - +
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+ - + - + - + - + - + - + - + - +
| 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | = 0x8 hexadecimal or 8 decimal or 1000 in binary
+ - + - + - + - + - + - + - + - +
Then it is a matter of combining the bit actions on the truth table above ...
source share