Q56
What is the result of 5 & 6 ^ 6 ?
A.
6
B.
5
C.
0
AnswerD.
1
Answer: Option C
Solution
Answer: Option C
Solution:
The & and ^ operators are evaluated from left to right.
Python MCQs: Bitwise and Boolean Operations Chapter
Programming · Python · question 56
Q56
Answer: Option C