Change set
Pick exam & year, then Go.
Question map
The result of binary addition of - 8 and - 2 in two's complement form is :
Explanation
To perform the binary addition of -8 and -2 in two's complement, we first represent the numbers in binary. Since the sum (-10) falls outside the range of 4-bit signed integers (-8 to +7), we must use at least 5 bits (range -16 to +15).
- Represent -8 in 5-bit: Positive 8 is 01000. Its 1's complement is 10111. Adding 1 gives 11000.
- Represent -2 in 5-bit: Positive 2 is 00010. Its 1's complement is 11101. Adding 1 gives 11110.
- Addition:
11000 (-8)
+ 11110 (-2)
----------
110110
In two's complement addition, the carry-out from the most significant bit (MSB) is discarded. Therefore, the 5-bit result is 10110. To verify: 10110 in two's complement is -(invert(0110) + 1) = -(01001 + 1) = -(01010)2 = -1010.
SIMILAR QUESTIONS
Assuming the computer is a 4-bit computer, what result is produced after subtraction of 3 from 5 using the 2's complement representation ?
What is the representation of -59 in the 2's complement form ?
The result of binary subtraction between 1001 and 101 is :
The hexadecimal number A53-8 is equivalent to
In a computer system, the signed numbers cannot be represented by