The 2's complement representation of the number (-100)10 in an 8 bit computer is
10011100
The question asks for the 2's complement representation of the number $(-100)_{10}$ in an 8-bit system. The 2's complement is a standard way computers represent negative numbers.
First, we find the binary representation of the absolute value of the number, which is $(100)_{10}$.
Since we need an 8-bit representation, we pad the binary number $1100100_{2}$ with leading zeros to make it 8 bits long.
The 8-bit representation of $(+100)_{10}$ is $01100100_{2}$.
To find the 2's complement, we first find the 1's complement by inverting all the bits (changing 0s to 1s and 1s to 0s).
Original 8-bit binary number for +100: 01100100
Invert the bits to get the 1's complement: 10011011
Next, we add 1 to the 1's complement to get the 2's complement representation.
1's Complement: 10011011
Add 1:
10011011
+ 1
------------------
10011100
Therefore, the 2's complement representation of $(-100)_{10}$ in an 8-bit system is 10011100.
Comparing our result with the given options:
The correct option is 10011100.
What is the full form of EBCDIC?
Consider the values A = 2.0 × 1030, B = -2.0 × 1030 C = 1.0. Assume, that the floating point numbers are represented with 32 bits. What are the values of X and Y, when the following sequence of operations are executed on a computer?
X = A + B
Y = A + C
X = X + C
Y = Y + B
Which of the following pairs of octal and binary numbers are NOT equal?