Which one of the following is decimal value of a signed binary number 1101010,…
2013
Which one of the following is decimal value of a signed binary number 1101010, if it is in 2’s complement form?
- A.
-42
- B.
-22
- C.
-21
- D.
-106
Attempted by 52 students.
Show answer & explanation
Correct answer: B
Step 1: Find 2’s complement magnitude
Original number:1101010
Invert all bits:0010101
Add 1:0010110
Step 2: Convert to decimal
00101102 =16+4+2=22
Since original number was negative:-22
A video solution is available for this question — log in and enroll to watch it.