Vidyalelo
Python · Q3

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 3

Q3

What is the result of 10 ^ 6 ?

A.
16
B.
12
Answer
C.
4
D.
14

Answer: Option B

Solution

Answer: Option B
Solution:
The ^ operator performs bitwise XOR on the binary representations of the numbers.