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
- 4 subtopics
- 12 things to know
- Papers 1 and 2
Learn Data Types and Data Structures in runs of four questions, then keep it with spaced repetition.
What Data Types and Data Structures covers
Data Types and Data Structures is examined in Paper 1, Principles of Computer Science, and Paper 2, Application of Computational Thinking. It covers data types; arrays and records; strings; and variables, constants and scope.
Where it is assessed
Papers 1 and 2
Computer Science 4CP0: this topic is examined on Paper 1, Principles of Computer Science (2 hours, 50%), and on Paper 2, Application of Computational Thinking (3 hours, on screen, 50%).
Check the Pearson Edexcel specification ↗The 4 subtopics
Each one has its own page.
- Data typesInteger, real, Boolean, char and string, why programs need different types, choosing a type, and casting.Open →
- Arrays and recordsOne-dimensional and two-dimensional arrays with zero-based indices, records, and how each is used and processed.Open →
- StringsWhy programs manipulate strings, with concatenation, length, slicing, case conversion and searching, in pseudocode and Python.Open →
- Variables, constants and scopeVariables and constants, declaring constants, and the difference between global and local variables in subprograms.Open →
What you need to know
Answer each one before you reveal it.
A two-dimensional array Marks holds [[12, 15, 9], [18, 7, 14]]. What is Marks[1][2] in Python?
How can a record be stored in Python?
What must a Python function do to change a global variable?
How is the length of a string found?
Name the five data types
How is a substring taken in Python?
What is a variable?
What is an integer?
What index does the first element of an array have?
What is the output of 'computer'[3:6] in Python?
What is a constant?
Take Data Types and Data Structures further
The same content, four other ways.
Commonly confused
Pairs that lose marks when they are blurred together.
Integer vs Real
Integer: a whole number data type. Real: a number data type with a fractional part.
Local variable vs Global variable
Local variable: a variable usable only inside its own subprogram. Global variable: a variable usable anywhere in the program.
Array vs Record
Array: a data structure holding many values of the same type under one name, each with an index. Record: a data structure grouping related values of different types under one name.
Questions from this topic
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'.
Everything in your subscription
Runs, plus a mode for every other kind of session.
Data Types and Data Structures revision questions
- What does Data Types and Data Structures cover in Edexcel IGCSE Computer Science?
- 4 subtopics: data types, arrays and records, strings and variables, constants and scope. Each one has its own page with questions and model answers.
- How is Data Types and Data Structures organised?
- By the Edexcel 4CP0 specification, subtopic by subtopic, so it matches the order you are taught it in.
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.