1.

The 2’s complement of 5 is ______________(a) 1011(b) 0101(c) 1010(d) 0011I got this question in a job interview.This intriguing question comes from Positional & Non-Positional Number System topic in portion Number Systems of Computer Fundamentals

Answer»

The CORRECT answer is (a) 1011

The best explanation: The 2’s complement is OBTAINED by adding 1 to the 1s complement of a number. The 1’s complement of 5(0101) is 1010. For 2’s complement : 1010+1=1011.



Discussion

No Comment Found

Related InterviewSolutions