Data · Data Types
up to +90 XP
Stop 6.4 · Data · 3 min

Data Types

Learn about common data types and their applications

Learning objectives:
  • Know common data types and when each is used (6.4.1)
  • Understand how structured and unstructured data relate to data types (6.4.2)
  • Understand how data type affects transformation (6.4.3)
  • Judge suitable data structures, types and transformations (6.4.4)

Common data types

Data typeDefinitionExample
IntegerA whole numberNumber of tickets: 3
RealA number with a decimal partPrice: 12.99
CharacterA single letter, digit or symbolGrade: 'B'
StringA sequence of charactersName: "Priya"
BooleanTrue or FalsePaid: True
DateA calendar date (and possibly time)28/11/2026
BlobBinary large object: binary data such as an image, audio, video or document stored as one itemA profile photo

Choosing the right type means data is stored efficiently and can be processed correctly. Storing a price as a string, for example, stops you adding prices up.

Structured, unstructured data and data types

Data types and transformation

Making judgements

Pick the combination that suits the task. To report average spend per month you need structured data with real prices and dates, processed with calculations. To review customer feedback, you need unstructured text that may first be codified into categories before it can be analysed.

Quick check · 9 questions

Check what stuck.

+10 XP each
Question 1

Question 1 of 9

Which data type stores a single letter such as 'B'?

Question 2

Question 2 of 9

Which data type stores a profile photo?

Question 3

Question 3 of 9

What does Blob stand for?

Question 4

Question 4 of 9

Which data type stores 12.99?

Question 5

Question 5 of 9

Why is storing prices as strings a problem?

Question 6

Question 6 of 9

Structured data is typically organised using…

Question 7

Question 7 of 9

Which data type can be sorted, compared and used to find durations?

Question 8

Question 8 of 9

Which data type cannot be processed like numbers or text and needs special tools?

Question 9

Question 9 of 9 · Match the pairs

Match each data type to an example.

Integer
Real
Boolean
Date