COMPUTER SCIENCE AND ENGINEERING
COMPUTER ARCHITECTURE
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
101001.1100
|
|
101000.0100.
|
|
010111.0011
|
|
101011.0011
|
Detailed explanation-1: -Two’s complement of binary number can be calculated as : First invert the given no. by replacing all 1’s by O’s and all O’s by 1’s. So 010111.1100 becomes 101000.0011.
Detailed explanation-2: -The eight-bit two’s complement representation of positive 85 is 01010101 .
Detailed explanation-3: -In this case then, if 10101101 is the one’s complement, just add one to get the two’s complement, which would be 10101110 .
Detailed explanation-4: -Step 1: Write the absolute value of the given number in binary form. Prefix this number with 0 indicate that it is positive. Step 2: Take the complement of each bit by changing zeroes to ones and ones to zero. Step 3: Add 1 to your result.
Detailed explanation-5: -Add 2’s complements of these numbers, 10110+11011 =1 10001. Since, there is a carry bit 1, so it is dropped. Now take the 2’s complement of this result, which will be 01111 and this number is negative, i.e, -01111, which is answer.