2.2.9

Data Types

Test yourself

Data Types

Every piece of data that is stored has a type. The type determines how it is stored and what you can do with the data.

Illustrative background for IntegerIllustrative background for Integer ?? "content

Integer

  • Whole numbers.
  • Examples:
    • 12, 0, -142.
Illustrative background for RealIllustrative background for Real ?? "content

Real

  • Fractional numbers.
  • Examples:
    • 0.42, 1.00.
Illustrative background for StringIllustrative background for String ?? "content

String

  • Text data.
  • Example:
    • "Hello, world!".
Illustrative background for CharacterIllustrative background for Character ?? "content

Character

  • A single letter of text data.
  • Example:
    • 'a'.
Illustrative background for BooleanIllustrative background for Boolean ?? "content

Boolean

  • A True or False value.
  • Examples:
    • True.
    • False.

Jump to other topics

1Computer Systems

1.1Systems Architecture

1.2Memory & Storage

1.3Computer Networks, Connections & Protocols

1.4Network Security

1.5Systems Software

1.6Ethical, Legal, Cultural & Environmental Concern

2Computational Thinking, Algorithms and Programming

2.1Algorithms

2.2Programming Fundamentals

2.3Producing Robust Programs

2.4Boolean Logic

2.5Programming Languages & IDEs

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson