Data Types A-Level

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

In deze les zitten 18 slides, met tekstslides.

Onderdelen in deze les

Data Types
24/01/24

Slide 1 - Tekstslide

What data types can you name?

Slide 2 - Tekstslide

Integer (int)

Slide 3 - Tekstslide

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

Slide 4 - Tekstslide

Floating point (float)

Slide 5 - Tekstslide

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

Slide 6 - Tekstslide

Character (char)

Slide 7 - Tekstslide

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

Slide 8 - Tekstslide

Boolean (bool)

Slide 9 - Tekstslide

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

Slide 10 - Tekstslide

String

Slide 11 - Tekstslide

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

Slide 12 - Tekstslide

Array

Slide 13 - Tekstslide

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

Slide 14 - Tekstslide

Date/Time

Slide 15 - Tekstslide

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

Slide 16 - Tekstslide

Record

Slide 17 - Tekstslide

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"}

Slide 18 - Tekstslide