Vidyalelo
Python · Q39

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 39

Q39

What is the result of 12 ^ (7 << 1) ?

A.
26
B.
22
Answer
C.
20
D.
10

Answer: Option B

Solution

Answer: Option B
Solution:
Parentheses are used to indicate the order of operations.