INTRODUCTION TO COMPUTERS
COMPUTER ARCHITECTURE AND ORGANIZATION
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The first complement of-32 is (assume 8 bit number)
|
11011111
|
|
10100000
|
|
11100000
|
|
11011011
|
Explanation:
Detailed explanation-1: -For example, an 8-bit unsigned number can represent the values 0 to 255 (11111111). However a two’s complement 8-bit number can only represent non-negative integers from 0 to 127 (01111111), because the rest of the bit combinations with the most significant bit as ‘1’ represent the negative integers −1 to −128.
Detailed explanation-2: -For an 8-bit binary number, the leftmost bit has a place value of 2^7, and the rightmost bit has a place value of 2^0. Therefore, the decimal value of the 8-bit binary number 10011110, interpreted as an unsigned number, is 158.
There is 1 question to complete.