1. Two\'s complement is not a complicated scheme and is not well served by anyth
ID: 3795727 • Letter: 1
Question
1. Two's complement is not a complicated scheme and is not well served by anything lengthly. Therefore, after this introduction, which explains what two's complement is and how to use it, there are mostly examples. Two's complement is the way every computer I know of chooses to represent integers. To get the two's complement negative notation of an integer, you write out the number in binary. You then invert the digits, and add one to the result.
Suppose we're working with 8 bit quantities (for simplicity's sake) and suppose we want to find how -28 would be expressed in two's complement notation. First we write out 28 in binary form. 00011100
Then we invert the digits. 0 becomes 1, 1 becomes 0. 11100011
Then we add 1. 11100100 T
hat is how one would write -28 in 8 bit binary.
a. True b. False
Explanation / Answer
Answer: True
Explanation: The explanation for two complement you have given is correct for two's complement number .Two's complement is a mathematical computation on binary numbers.
i.e 11100
To represent in 8 bit number place three zeros place two zeros infront of the above binary number i.e 000111000
1)- 28 00011100
By complementing the above binary format i.e 11100011
Adding 1 for the above binary format 1
............................
Result = 11100100
.............................
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.