levo

Data Types, Characters and Floating Point

Primitive data types

  • 3 things to know
  • Component 2

Overview

Five primitive data types this course requires, character data type and string data type.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Name the five primitive data types

Key term

What values can a Boolean variable take?

Key term

Define the character data type.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Name the five primitive data types this course requires.

    Model answer

    The five primitive types are Boolean, character, string, integer and real. Every more complex structure is built from these basic types.

  2. 2

    What values can a Boolean variable take?

    Model answer

    A Boolean variable holds only TRUE or FALSE. The two values are usually stored as 1 and 0.

  3. 3

    Define the character data type.

    Model answer

    A character holds exactly one symbol from the character set, such as a letter, digit or punctuation mark. The symbol is stored as its numeric character code.

  4. 4

    Define the string data type.

    Model answer

    A string is a sequence of characters of any length, including the empty string. Strings are stored as consecutive character codes with a length count or a terminator.

  5. 5

    Define the integer data type.

    Model answer

    An integer is a whole number with no fractional part, positive, negative or zero. Integers are stored exactly, usually in two's complement.

  6. 6

    Define the real data type.

    Model answer

    A real number can have a fractional part, such as 3.75 or −0.5. Reals are normally stored in floating point form.

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.