Vidyalelo
Python · Q56

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 56

Q56

What is the result of 5 & 6 ^ 6 ?

A.
6
B.
5
C.
0
Answer
D.
1

Answer: Option C

Solution

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