Vidyalelo
Python · Q38

Python MCQs: Bitwise and Boolean Operations Chapter

Programming · Python · question 38

Q38

What will be the output of the following Python code if a=10 and b =20? a=10 b=20 a=a^b b=a^b a=a^b print(a,b)

A.
10 20
B.
10 10
C.
20 10
Answer
D.
20 20

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board