levo

Data

Binary addition, overflow and shifts

  • 3 things to know
  • Paper 1
Start revising · £5/month

Overview

Rules for binary addition, worked 8-bit additions, overflow and its problems, logical left and right shifts, and arithmetic right shifts on negative numbers.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

State the rules for adding single binary digits.

Key term

Add the 8-bit binary numbers 00101101 and 00011011.

Key term

Add the 8-bit binary numbers 01110110 and 00111001.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    State the rules for adding single binary digits.

    Model answer

    The sum 0 + 0 gives 0, and 0 + 1 gives 1. The sum 1 + 1 gives 0 carry 1, and 1 + 1 + 1 gives 1 carry 1.

  2. 2

    Add the 8-bit binary numbers 00101101 and 00011011.

    Model answer

    The binary sum is 01001000. The denary check is 45 + 27 = 72.

  3. 3

    Add the 8-bit binary numbers 01110110 and 00111001.

    Model answer

    The binary sum is 10101111. The denary check is 118 + 57 = 175.

  4. 4

    What is overflow?

    Model answer

    Overflow happens when the result of a calculation needs more bits than are available to store it. The extra bit is lost, so the stored result is wrong.

  5. 5

    What is stored when 11001000 and 01100100 are added in an 8-bit register?

    Model answer

    The register stores 00101100, which is 44. The true sum is 100101100, or 300, which needs 9 bits, so the leading 1 overflows.

  6. 6

    How can you spot that overflow has happened when adding two 8-bit unsigned numbers?

    Model answer

    Overflow has happened if a carry comes out of the most significant bit. The true answer would need a ninth bit.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Computational Thinking
Data
Computers
Networks

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

The check is 45 + 27 = 72.
denarybinaryhexadecimal

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

A kibibyte (KiB) is 1,024 bytes. The figure 1,024 is 2¹⁰.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Data, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.