Vidyalelo
Python · Q9

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 9

Q9

What is the result of ~(6 & 3) ?

A.
-6
B.
6
C.
-2
Answer
D.
2

Answer: Option C

Solution

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