1.

What is the two’s complement of -44?(a) 1011011(b) 11010100(c) 11101011(d) 10110011The question was posed to me in exam.This is a very interesting question from Bitwise in chapter Precedence and Associativity, Bitwise & Boolean of Python

Answer»

Correct OPTION is (B) 11010100

Best explanation: The binary form of -44 is 00101100. The one’s complement of this VALUE is 11010011. On adding one to this we get: 11010100 (TWO’s complement).



Discussion

No Comment Found

Related InterviewSolutions