Python Programming - Operators Questions with Answers teach how to perform operations on data effectively. These Python Operators Questions are important for Infosys, Wipro, and SSC exams testing logical and arithmetic concepts
Python Operators
Showing 10 of
26 questions
21. Which operator performs bitwise XOR?
xor
^
~
!
Answer: Option B
Hints: The ^ operator performs bitwise XOR (exclusive OR) operation, which sets each bit to 1 if only one of the two bits is 1.