Q6
What is the result of 7 << 2 ?
A.
28
AnswerB.
7
C.
14
D.
4
Answer: Option A
Solution
Answer: Option A
Solution:
The << operator performs left shift, shifting the bits to the left.
Python MCQs: Bitwise and Boolean Operations Chapter
Programming · Python · question 6
Q6
Answer: Option A