Digital Arithmetic Operations and Circuits - Technical MCQs

Q1:

Convert each of the signed decimal numbers to an 8-bit signed binary number (two's-complement).
+7        –3        –12

A 0000  0111    1111  1101    1111  0100

B 1000  0111    0111  1101    0111  0100

C 0000  0111    0000  0011    0000  1100

D 0000  0111    1000  0011    1000  1100

ANS:A - 0000  0111    1111  1101    1111  0100

+7 => 00000111.

-3=>for -ve sign the 1st four digit should be 1111 and the 3 becomes 0011 in binary. Take 2's complement of 3. We will get 1101.
i.e 3=>0011.

1's complement => 1100.

2's complement => 1101.