levo

Binary

Binary addition, shifts and overflow

  • 3 things to know
  • Papers 1 and 2
Start revising · £5/month

Overview

Adding binary numbers, overflow, and logical and arithmetic shifts with their effect on a number's value.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Add the unsigned 8-bit binary numbers 01111111 and 00000001, and state whether overflow occurs

Key term

Add the unsigned 8-bit binary numbers 10101010 and 01100110, and state whether overflow occurs

Key term

Add the unsigned 8-bit binary numbers 11110000 and 00010001, and state whether overflow occurs

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Add the binary numbers 01101101 and 00110110.

    Model answer

    The sum of 01101101 and 00110110 is 10100011, which is 109 + 54 = 163 in denary.

  2. 2

    When does overflow occur when adding two unsigned 8-bit binary numbers?

    Model answer

    Overflow occurs when the result is greater than 255, because 255 is the largest value an 8-bit register can hold.

  3. 3

    What is the effect of a logical left shift of one place?

    Model answer

    A logical left shift of one place multiplies the binary number by 2, as long as no 1 bits are lost from the left.

  4. 4

    What is the effect of a logical right shift of one place?

    Model answer

    A logical right shift of one place divides the binary number by 2, and any remainder is lost.

  5. 5

    Perform a logical left shift of two places on 00010110.

    Model answer

    Shifting 00010110 two places left gives 01011000. The value changes from 22 to 88, which is multiplied by 4.

  6. 6

    Perform a logical right shift of one place on 00010110.

    Model answer

    Shifting 00010110 one place right gives 00001011. The value changes from 22 to 11, which is divided by 2.

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.

Algorithms
Searching and Sorting Algorithms
Decomposition and Abstraction
Developing and Testing Code

Cram the night before, weakest topic first

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

Denary is a base system.
1028

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.

Nibble means a group of four bits.
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 Binary, 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.