1.

Which of the following represents the bitwise XOR operator?(a) &(b) ^(c) |(d) !I have been asked this question by my school principal while I was bunking the class.Asked question is from Bitwise topic in portion Precedence and Associativity, Bitwise & Boolean of Python

Answer»

The correct OPTION is (B) ^

To EXPLAIN: The ^ operator REPRESENT bitwise XOR operation. &: bitwise AND, | : bitwise OR and ! represents bitwise NOT.



Discussion

No Comment Found

Related InterviewSolutions