Q35
What is the result of (10 >> 1) & 3 ?
A.
1
AnswerB.
3
C.
2
D.
0
Answer: Option A
Solution
Answer: Option A
Solution:
The >> and & operators are evaluated from left to right.
Python MCQs: Bitwise and Boolean Operations Chapter
Programming · Python · question 35
Q35
Answer: Option A