1.

Express the decimal format of the signed binary number (101010)^2 .(a) 10(b) 12(c) -12(d) -10I got this question in an interview for job.My question is taken from Binary Multiplication & Division in section Computer Arithmetic of Computer Fundamentals

Answer»

Right ANSWER is (d) -10

The EXPLANATION is: The first bit is the sign bit whereas the REST of the bits are magnitude bits. So the number is: 01010 =2^3 * 1 + 2^1* 1 =8+2 =10.

But , the sign bit is 1,

Therefore the answer is : (-2)^10.



Discussion

No Comment Found

Related InterviewSolutions