Q9
What is the result of ~(6 & 3) ?
A.
-6
B.
6
C.
-2
AnswerD.
2
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 9
Q9
Answer: Option C