4.1.1

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 Float / RealIllustrative background for Float / Real ?? "content

Float / 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

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Ahead

6.3Thinking Procedurally

6.4Thinking Logically

6.5Thinking Concurrently

7Problem Solving & Programming

8Algorithms

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium