# Data Types A-Level

Data Types
24/01/24
1 / 18
Slide 1: Slide
ComputingUpper Secondary (Key Stage 4)GCSE

This lesson contains 18 slides, with text slides.

## Items in this lesson

Data Types
24/01/24

#### Slide 1 -Slide

What data types can you name?

Integer (int)

#### Slide 3 -Slide

Integer
Represents whole numbers without any decimal points. Examples: -3, 0, 42.

#### Slide 4 -Slide

Floating point (float)

#### Slide 5 -Slide

Floating point (float)
Represents numbers with decimal points.
Examples: -3.14, 2.718, 0.0.

Character (char)

#### Slide 7 -Slide

Character (char)
Represents a single character
Examples: 'a", """ or "5".

Boolean (bool)

#### Slide 9 -Slide

Boolean (bool)
Represents true or false values.
Examples: 1/0, true/false

String

#### Slide 11 -Slide

String
Represents a sequence of characters.
Example: "Hello, World!", "Oi, that's my sandwich. Yours is still in the fridge."

Array

#### Slide 13 -Slide

Array
A collection of elements of the same data type.
Example: int numbers[5] = {1, 2, 3, 4, 5};

Date/Time

#### Slide 15 -Slide

Date/Time
Used to represent dates.
Examples: "20/01/2023".

Record

#### Slide 17 -Slide

Record
A record is a composite data type that groups together related data fields under one name.
student_record = {"name":"Dave Davidson", "age":18, "grade":"A"}