1.

Express the decimal format of the signed binary number (101010)2 .(a) 10(b) 12(c) -12(d) -10I have been asked this question in an interview for internship.This interesting question is from IEEE 32 and 64 bit in division Computer Arithmetic of Computer Fundamentals

Answer»

Correct answer is (d) -10

For explanation I would SAY: 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