levo

Data, Information and Data Representation

Two's complement and negative numbers

  • 3 things to know
  • AS Unit 2
Start revising · £5/month

Overview

Why a sign bit alone is not enough, forming a negative value by inverting and adding one, reading a negative pattern back, the range from −128 to 127, and adding a negative to a positive.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Why is a special system needed to hold negative numbers in binary?

Key term

In an 8-bit two's complement number, what does the leftmost bit tell you?

Key term

What range of values can 8-bit two's complement represent?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Why is a special system needed to hold negative numbers in binary?

    Model answer

    A plain binary pattern carries no minus sign, so an agreed convention is needed that lets the same eight bits stand for negative values as well as positive ones.

  2. 2

    In an 8-bit two's complement number, what does the leftmost bit tell you?

    Model answer

    The leftmost bit is the sign bit, and a 0 there means the number is positive or zero while a 1 means it is negative.

  3. 3

    What range of values can 8-bit two's complement represent?

    Model answer

    Eight-bit two's complement represents every whole number from −128 to +127.

  4. 4

    Why does the range reach one further below zero than above it?

    Model answer

    The pattern of all zeros is used for zero itself, which leaves 127 patterns for positive values and 128 patterns for negative ones.

  5. 5

    Describe the procedure for writing a negative number in 8-bit two's complement.

    Model answer

    The size of the number is written as an 8-bit positive binary value, every bit is then inverted, and 1 is added to the inverted pattern.

  6. 6

    What is −5 in 8-bit two's complement?

    Model answer

    The value −5 is 11111011, found by writing 5 as 00000101, inverting that to 11111010 and adding 1.

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.

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

Cram the night before, weakest topic first

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

A check requires a value.
presencerangeformat

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.

One byte is made up of 8 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 Data, Information and Data Representation, 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.