Vidyalelo
Python · Q44

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 44

Q44

What is the result of ~(7 ^ 2) ?

A.
-5
B.
5
C.
-3
Answer
D.
3

Answer: Option C

Solution

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