NIMCET 2016 — Computer PYQ
NIMCET | Computer | 2016The 2's complement representation of the number (−100)10 in an 8 bit computer is
Choose the correct answer:
- A.
10011011
- B.
01100100
- C.
11100100
- D.
10011100
(Correct Answer)
10011100
Explanation
Concept:
Convert decimal to binary
Conversion steps:
Divide the number by 2.
Get the integer quotient for the next iteration.
Get the remainder for the binary digit.
Repeat the steps until the quotient is equal to 0.
Calculation:
Convert (−100)10 to binary
So, the binary equivalent of 100 is 1100100
(100)10 in binary system 1100100
Now two’s complement = 1st complement + 1
= 0011011 + 1
= 0011100
For (–100)_10 will be 10011100
Explanation
Concept:
Convert decimal to binary
Conversion steps:
Divide the number by 2.
Get the integer quotient for the next iteration.
Get the remainder for the binary digit.
Repeat the steps until the quotient is equal to 0.
Calculation:
Convert (−100)10 to binary
So, the binary equivalent of 100 is 1100100
(100)10 in binary system 1100100
Now two’s complement = 1st complement + 1
= 0011011 + 1
= 0011100
For (–100)_10 will be 10011100

