Digital Arithmetic Operations and Circuits - Technical MCQs

Q1:

Perform subtraction on each of the following binary numbers by taking the two's-complement of the number being subtracted and then adding it to the first number.
01001        01100
00011        00111

A 01100    10011

B 00110    00101

C 10110    10101

D 00111    00100

ANS:B - 00110    00101

Given:

01001 ->01001 -> 01001.

00011-> 1's Complement 11100.
And 2's Complement -> 11101.
Add Both the Numbers i.e 100110.

Ignore the MSB then we will get -> 00110.

Similarly,

01100 ->01100-> 01100.

00111 -> 1's Complement 11000
And 2's Complement ->11001
Add Both the Numbers i.e 100101.

And finally, we get -> 00101.