All Exams Test series for 1 year @ ₹349 only
Question

In computers, subtraction is generally carried out by

The correct answer is

2’s complement

Computers commonly subtract using two’s complement: invert the subtrahend’s bits, add 1, then add it to the minuend in the fixed word width. Discard the carry beyond that width.

\(A-B\equiv A+\overline{B}+1\pmod{2^w}.\)

Was this answer helpful?

Important Questions from Number Representation

  1. What is the full form of EBCDIC?

  2. The 2's complement representation of the number (-100)10 in an 8 bit computer is

  3. Consider the values A = 2.0 × 1030, B = -2.0 × 1030 C = 1.0. Assume, that the floating point numbers are represented with 32 bits. What are the values of X and Y, when the following sequence of operations are executed on a computer?

    X = A + B

    Y = A + C

    X = X + C

    Y = Y + B

  4. The 32-bit IEEE 754 single precision representation of a number is 0xC2710000. The number in decimal representation is ________. (rounded off to two decimal places)
  5. With 4 - bit 2's complement arithmetic, which of the following additions will result in overflow ?
    (i) 1100 + 0100
    (ii) 1100 + 1111
    (iii) 0101 + 0100
    (iv) 1010 + 1100
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App