COMPUTER SCIENCE AND ENGINEERING
DIGITAL LOGIC
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
When subtracting B from A computers add the inverse of B to A. This process is called?
|
Binary two
|
|
two’s enough
|
|
two’s compliment
|
|
two’s too many
|
Explanation:
Detailed explanation-1: -: the negative of a binary number represented by switching all ones to zeros and all zeros to ones and then adding one to the result.
Detailed explanation-2: -2’s complement of a binary number is 1, added to the 1’s complement of the binary number. In the 2’s complement representation of binary numbers, the MSB represents the sign with a ‘0’ used for plus sign and a ‘1’ used for a minus sign. the remaining bits are used for representing magnitude.
Detailed explanation-3: -1’s complement is taken by inverting all the binary digits in the number, i.e. replacing 0’s with 1’s and 1’s with 0’s. 2’s complement on the other hand enables us to denote both positive numbers and negative numbers in the binary system.
There is 1 question to complete.