1.

Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.(a) 10(b) 2(c) 1(d) 0I have been asked this question in examination.I'd like to ask this question from Bitwise topic in portion Precedence and Associativity, Bitwise & Boolean of Python

Answer»

Right option is (C) 1

The EXPLANATION is: Any ODD number on being AND-ed with 1 always GIVES 1. Any even number on being AND-ed with this VALUE always gives 0.



Discussion

No Comment Found

Related InterviewSolutions