Vidyalelo
Python · Q50

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 50

Q50

What is the result of 9 ^ (5 & 3) ?

A.
8
B.
7
C.
1
Answer
D.
2

Answer: Option C

Solution

Answer: Option C
Solution:
The ^ and & operators are evaluated from left to right.