Q39
What is the result of 12 ^ (7 << 1) ?
A.
26
B.
22
AnswerC.
20
D.
10
Answer: Option B
Solution
Answer: Option B
Solution:
Parentheses are used to indicate the order of operations.
Python MCQs: Bitwise and Boolean Operations Chapter
Programming · Python · question 39
Q39
Answer: Option B