The 2's complement of the binary number 1010 is:
- A.0101
- B.0110
- C.1011
- D.1001
Correct answer
Explanation
The correct answer is B, 0110. The 2's complement is found in two steps. First take the 1's complement by changing every 0 to 1 and every 1 to 0; for 1010 this gives 0101. Then add 1 to that result: 0101 plus 1 equals 0110. So the 2's complement of 1010 is 0110. Computers store negative numbers in 2's complement form because the same adder circuit can then perform both addition and subtraction, which saves hardware. Option A is wrong because 0101 is only the 1's complement, the first step, and forgetting to add one is the commonest mistake in this question. Option C is wrong because 1011 is simply 1010 with the last bit changed. Option D is wrong because 1001 is neither complement of the given number. Remember: 2's complement equals 1's complement plus one.
Read the full article: Number Systems and Data Representation in Computers
Practice Questions
View allWhat is the hexadecimal equivalent of this binary number (1110)2?
- A.F
- B.B
- C.A
- D.E
Show answer
Hexadecimal has base 16, and because 2 raised to the power 4 equals 16, exactly four binary bits make one hexadecimal digit.
Read the full explanation →The binary equivalent of octal number 627 is:
- A.111010110
- B.110010110
- C.110010111
- D.011010111
Show answer
Octal has base 8, and because 2 raised to the power 3 equals 8, every octal digit expands into exactly three binary bits.
Read the full explanation →(1101 0001)2 binary number is same as which octal number?
- A.(321)8
- B.(123)8
- C.(641)8
- D.(146)8
Show answer
To turn a binary number into octal, group the bits in threes starting from the rightmost bit, adding leading zeros to complete the last group, because three bits cover the eight octal digits.
Read the full explanation →The difference between the two binary numbers 10010000 and 1111001 is:
- A.11101
- B.11011
- C.10111
- D.10011
Show answer
The safest way to handle a binary subtraction in an examination is to convert both numbers to decimal, subtract, and convert the answer back.
Read the full explanation →How many bits make one nibble?
- A.2
- B.4
- C.8
- D.16
Show answer
A bit, short for binary digit, is a single 0 or 1 and is the smallest unit of data a computer handles.
Read the full explanation →