1.

Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.(a) OR(b) AND(c) XOR(d) NOTThis question was addressed to me by my college director while I was bunking the class.The query is from Bitwise in portion Precedence and Associativity, Bitwise & Boolean of Python

Answer»

The CORRECT option is (C) XOR

The explanation: Bitwise XOR gives 1 if either of the BITS is 1 and 0 when both of the bits are 1.



Discussion

No Comment Found

Related InterviewSolutions