Machine-translated by Google. Questions are authored in English.
Top

Discussion

Assertion (A) : 2's complement arithmetic is preferred in digital computers.
Reason (R) : The hardware required to obtain 2's complement of a number is simple.

  • A.Both (A) and (R) are true and (R) is the correct explanation of (A)
  • B.Both (A) and (R) are true but (R) is not the correct explanation of (A)
  • C.(A) is true but (R) is false
  • D.(A) is false and (R) is true

Answer: A

Both (A) and (R) are true and (R) is the correct explanation of (A).

Computers use 2's complement because the same adder then handles both addition and subtraction: A - B is computed as A + (2's complement of B). There is only one representation of zero, and no end-around carry is needed as in 1's complement.

The 2's complement itself is obtained with very simple hardware: invert every bit (an XOR or NOT gate per bit) and add 1 through the carry input of the adder. That simplicity is the reason the scheme is preferred, so the reason explains the assertion.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.