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

The difference between the two binary numbers 10010000 and 1111001 is:

This question was previously asked in
RRB ALP 2018 CBT 2 Fitter Question Paper (21-Jan-2019) (Shift 3)
The correct answer is

10111

Understanding Binary Subtraction

This question asks us to find the difference between two binary numbers, 10010000 and 1111001. Subtracting binary numbers is similar to subtracting decimal numbers, but instead of borrowing 10, we borrow 2.

Performing Binary Subtraction Step-by-Step

To subtract 1111001 from 10010000, we align the numbers vertically, padding the shorter number with leading zeros to match the length of the longer number (8 bits in this case).

Original numbers:

10010000
1111001

Padded for subtraction:

10010000
01111001

Now, we subtract column by column from right to left, starting from the least significant bit.

Position (from right, starting at 0) Top Bit Bottom Bit Calculation Result Bit Borrow
0 0 1 \(0 - 1\). Needs borrow. 1 (after borrowing) Borrow from left
1 0 (becomes 1 after borrowing to pos 0) 0 \(1 - 0\). 1 None
2 0 (becomes 1 after borrowing to pos 1) 0 \(1 - 0\). 1 None
3 0 (becomes 1 after borrowing to pos 2) 1 \(1 - 1\). 0 None
4 1 (becomes 0 after borrowing to pos 3) 1 \(0 - 1\). Needs borrow. 1 (after borrowing) Borrow from left
5 0 (becomes 1 after borrowing to pos 4) 1 \(1 - 1\). 0 None
6 0 (becomes 1 after borrowing to pos 5) 1 \(1 - 1\). 0 None
7 1 (becomes 0 after borrowing to pos 6) 0 \(0 - 0\). 0 None

Let's detail the borrowing process more clearly:

  0 1 1 1 0 1 1 (10)  <-- Effective digits after borrowing
1 0 0 1 0 0 0 0
- 0 1 1 1 1 0 0 1
------------------
0 0 0 1 0 1 1 1

Explanation of borrows:

  • Starting from the rightmost column (position 0), we need to calculate \(0 - 1\). We must borrow. We look to the left. The first '1' is at position 4.
  • We borrow 1 from position 4. The digit at position 4 becomes 0. This borrowed 1 becomes 2 (binary 10) at position 3.
  • We borrow 1 from position 3 (which is now 2). It becomes 1. This borrowed 1 becomes 2 at position 2.
  • We borrow 1 from position 2 (which is now 2). It becomes 1. This borrowed 1 becomes 2 at position 1.
  • We borrow 1 from position 1 (which is now 2). It becomes 1. This borrowed 1 becomes 2 at position 0.
  • Now, at position 0, we have \(2 - 1 = 1\). The result bit is 1.
  • At position 1, we have \(1 - 0 = 1\). The result bit is 1.
  • At position 2, we have \(1 - 0 = 1\). The result bit is 1.
  • At position 3, we have \(1 - 1 = 0\). The result bit is 0.
  • At position 4, the digit was 1, but became 0 due to the initial borrow. We need to calculate \(0 - 1\). We must borrow again.
  • We look left. Positions 5 and 6 are 0. Position 7 is 1.
  • We borrow 1 from position 7. It becomes 0. This borrowed 1 becomes 2 at position 6.
  • We borrow 1 from position 6 (now 2). It becomes 1. This borrowed 1 becomes 2 at position 5.
  • We borrow 1 from position 5 (now 2). It becomes 1. This borrowed 1 becomes 2 at position 4.
  • Now, at position 4, we have \(2 - 1 = 1\). The result bit is 1.
  • At position 5, we have \(1 - 1 = 0\). The result bit is 0.
  • At position 6, we have \(1 - 1 = 0\). The result bit is 0.
  • At position 7, the digit was 1, but became 0 due to borrowing. We have \(0 - 0 = 0\). The result bit is 0.

Combining the result bits from left to right gives us 00010111. Leading zeros can be dropped.

The difference is 10111.

Verification using Decimal Conversion

We can convert the binary numbers to decimal to verify our subtraction.

  • Binary \(10010000_2\):
  • \(1 \times 2^7 + 0 \times 2^6 + 0 \times 2^5 + 1 \times 2^4 + 0 \times 2^3 + 0 \times 2^2 + 0 \times 2^1 + 0 \times 2^0\)
  • \(= 1 \times 128 + 0 \times 64 + 0 \times 32 + 1 \times 16 + 0 \times 8 + 0 \times 4 + 0 \times 2 + 0 \times 1\)
  • \(= 128 + 0 + 0 + 16 + 0 + 0 + 0 + 0 = 144_{10}\)
  • Binary \(1111001_2\):
  • \(1 \times 2^6 + 1 \times 2^5 + 1 \times 2^4 + 1 \times 2^3 + 0 \times 2^2 + 0 \times 2^1 + 1 \times 2^0\)
  • \(= 1 \times 64 + 1 \times 32 + 1 \times 16 + 1 \times 8 + 0 \times 4 + 0 \times 2 + 1 \times 1\)
  • \(= 64 + 32 + 16 + 8 + 0 + 0 + 1 = 121_{10}\)

Decimal difference: \(144 - 121 = 23_{10}\).

Now, let's convert our binary result 10111 back to decimal:

  • Binary \(10111_2\):
  • \(1 \times 2^4 + 0 \times 2^3 + 1 \times 2^2 + 1 \times 2^1 + 1 \times 2^0\)
  • \(= 1 \times 16 + 0 \times 8 + 1 \times 4 + 1 \times 2 + 1 \times 1\)
  • \(= 16 + 0 + 4 + 2 + 1 = 23_{10}\)

The decimal result matches, confirming our binary subtraction is correct.

The difference between the two binary numbers 10010000 and 1111001 is 10111.

Revision Table: Binary Subtraction Basics

Operation Result Borrow Needed?
\(0 - 0\) 0 No
\(1 - 0\) 1 No
\(1 - 1\) 0 No
\(0 - 1\) 1 Yes (borrow 1 from left, which adds 2 to current position)

Additional Information: Representing Negative Binary Numbers

When the subtrahend is larger than the minuend, the result of binary subtraction is negative. Negative binary numbers can be represented using methods like Sign-Magnitude, One's Complement, or Two's Complement. Two's Complement is the most common method used in computers for representing negative numbers and performing arithmetic operations, including subtraction.

In Two's Complement subtraction, the subtraction \(A - B\) is performed as \(A + (\text{Two's Complement of } B)\). This converts subtraction into an addition operation, simplifying hardware design in digital systems.

Was this answer helpful?

Similar Questions

  1. What is the power dissipated in a 5-ohm resistor carrying 2 A current?

  2. Which force is responsible for the flow of electron from point A to B through a conductor?

  3. When a number of resistors are connected in series in a circuit, the value of current ________ across each resistor.

  4. Which of the following solutions do not conduct electricity?

  5. Two balls of steel having mass of 5 kg and 10 kg each possess equal kinetic energy. Which ball is moving faster, if at all?

  6. What is the wavelength of a sound wave whose frequency is 820 Hz and speed is 420 m/s in a given medium?

  7. The pitch of a sound depends on its ________.

  8. A high jumper rims for a while before taking a high jump so that the inertia of ______ helps him take the long jump.

  9. Find the work done (in kJ) if a force of 750 N pushes a cart of mass 30 kg by 16 m.

  10. If a ball is thrown vertically upwards with a velocity of 40 m/s, then what will be the magnitude of its displacement after 6 s?
    (Take g = 10 m/s 2)

Important Questions from Physics

  1. Ultrasonic sounds are the sounds which have frequencies?

  2. What is the colour of the light emitted by the Sun?

  3. What is the resultant resistance of 3 Ω and 6 Ω resistances connected in series?

  4. When the sound becomes louder, which property of the sound is increased?

  5. Lightning occur in the sky when two clouds:

Need Expert Advice?
Upcoming Exams
RRB NTPC
September 27, 2026
Test Series
RRB ALP img
Railways
RRB ALP 2026 Mock Test series
1035 Tests 1 Tests Free
893 Attempts
4.3(235)
English, Hindi

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