Vidyalelo
Python · Q6

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 6

Q6

What is the result of 7 << 2 ?

A.
28
Answer
B.
7
C.
14
D.
4

Answer: Option A

Solution

Answer: Option A
Solution:
The << operator performs left shift, shifting the bits to the left.