Edexcel IGCSE Computer Science 4CP0
Algorithms
Searching and Sorting Algorithms
Decomposition and Abstraction
Developing and Testing Code
Programming Constructs and Operators
Data Types and Data Structures
Input, Output and Validation
Data Representation
Data Storage and Compression
Encryption
Hardware and the CPU
Software
Programming Languages and Translators
Networks
Network Security
The Internet and the World Wide Web
Emerging Trends, Issues and Impact
Data Types and Data Structures
Data types
- 3 things to know
- Papers 1 and 2
Overview
Integer, real, Boolean, char and string, why programs need different types, choosing a type, and casting.
What you need to know
Answer each one before you reveal it.
Name the five data types
What is an integer?
Questions from this subtopic
Each one with the model answer underneath.
- 1
Name the five data types.
Model answer
The five data types are integer, real, Boolean, char and string.
- 2
What is an integer?
Model answer
An integer is a whole number, positive or negative, such as 42 or −7.
- 3
What is a real number?
Model answer
A real number has a fractional part, such as 3.14 or −0.5. Python calls this type a float.
- 4
What is a Boolean?
Model answer
A Boolean is a data type with only two values, True and False.
- 5
What is a char?
Model answer
A char is a single character, such as 'A', '7' or '?'.
- 6
What is a string?
Model answer
A string is a sequence of characters, such as 'Hello world'.
Other ways to work this
The same content, four other ways.
Everything in your subscription
Runs, plus a mode for every other kind of session.
Every question in Data Types and Data Structures, on a schedule.
Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.