Q44
What is the result of ~(7 ^ 2) ?
A.
-5
B.
5
C.
-3
AnswerD.
3
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 44
Q44
Answer: Option C