Mind map
Data Types
Map content
Data Types
Integer
- int
- Whole numbers only
- 0, 6, 10293, -999
- 2 or 4 bytes
Real / Float
- real
- Numbers that have a decimal part
- 0.15, -5.3, 100.0
- 4 or 8 bytes
Boolean
- bool
- Can only take one of two values, normally True or False
- True/False, 1/0, yes/no
- 1 bit needed, 1 byte normally used
Character
- char / chr
- A single letter, number, symbol
- @, 4, h, L
- 1 byte
String
- string / str
- Used to represent text, it is a collection of characters
- H@ppY B!rthD4y, How are you?
- 1 byte per character
Codes
Examples
Each data type is allocated a different amount of memory.
Casting
- Changing the type of variable from one to another
Information
- Description
- GCSE Computer Studies Mind Map on Data Types, created by Izzy DB on 16/12/2021.
- Created by
- Izzy DB
- Views
- 2
- Rating