levo

Data Types, Characters and Floating Point

Integer and floating point compared

  • 3 things to know
  • Component 2

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

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

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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