levo

Data Types, Characters and Floating Point

Integer and floating point compared

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

Overview

Exactness and simple arithmetic on one side; fractions and enormous magnitudes on the other, bought at the price of approximation.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Evaluation

Give the main advantage of integer representation.

Evaluation

Give the main disadvantage of integer representation.

Evaluation

Give the main advantage of floating point representation.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Give the main advantage of integer representation.

    Model answer

    An integer is stored exactly, with no rounding error at all. Integer arithmetic is also faster and uses simpler hardware.

  2. 2

    Give the main disadvantage of integer representation.

    Model answer

    An integer cannot hold a fractional part, so 7 divided by 2 loses the half. The range is also limited by the word length.

  3. 3

    Give the main advantage of floating point representation.

    Model answer

    A floating point format covers a very wide range of magnitudes in a fixed word length. Fractional values can be held to a useful number of significant figures.

  4. 4

    Give the main disadvantage of floating point representation.

    Model answer

    Most floating point values are approximations, so small errors accumulate over many operations. Arithmetic is also slower and needs more complex circuitry.

  5. 5

    Which representation suits a bank balance held in pence, and why?

    Model answer

    An integer count of pence is the right choice, because every value must be exact. Floating point rounding could lose fractions of a penny over many transactions.

  6. 6

    Which representation suits a scientific measurement such as 6.02 × 10²³?

    Model answer

    Floating point is needed, because the magnitude is far beyond any practical integer range. The mantissa keeps the significant figures while the exponent carries the size.

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.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram the night before, weakest topic first

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

KDW to HAT.
decryptsencryptscompresses

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.

Backup means the copy of the data.
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 Types, Characters and Floating Point, 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.