Data Types and Data Structures | Edexcel International GCSE Computer Science (4CP0)
Guide overview All 20 topics Sample questions Papers and weighting Look inside Questions and answers
Data Types and Data Structures
- 41 questions
- 4 subtopics
- Paper 1
- Paper 2
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.
Sample questions from Data Types and Data Structures
Answer each one closed book first, then open the answer.
-
Data types
Name the five data types.
Show the answer
The five data types are integer, real, Boolean, char and string. -
Data types
What is a string?
Show the answer
A string is a sequence of characters, such as 'Hello world'. -
Arrays and records
What is a one-dimensional array?
Show the answer
A one-dimensional array is a data structure that holds a list of values of the same type under one name, each with an index. -
Arrays and records
How is every element of a two-dimensional array processed?
Show the answer
A nested loop is used. The outer loop moves through the rows and the inner loop through the columns. -
Strings
Why do programs need to manipulate strings?
Show the answer
Programs process names, passwords, messages and file data, which are all text. Strings must be joined, searched and cut into parts. -
Strings
What is the output of 'computer'[3:6] in Python?
Show the answer
The Python slice 'computer'[3:6] starts at index 3 and stops before index 6, so the output is 'put'. -
Variables, constants and scope
What is a variable?
Show the answer
A variable is a named location in memory that holds a value which can change while the program runs. -
Variables, constants and scope
What is a local variable?
Show the answer
A local variable is declared inside a subprogram and can be used only within that subprogram.
The 4 subtopics
One subtopic is one session. Work down the list.
| Subtopic | What it covers | Questions |
|---|---|---|
| Data types | Integer, real, Boolean, char and string, why programs need different types, choosing a type, and casting. | 10 |
| Arrays and records | One-dimensional and two-dimensional arrays with zero-based indices, records, and how each is used and processed. | 12 |
| Strings | Why programs manipulate strings, with concatenation, length, slicing, case conversion and searching, in pseudocode and Python. | 9 |
| Variables, constants and scope | Variables and constants, declaring constants, and the difference between global and local variables in subprograms. | 10 |
How the guide is worked
Answering a question from memory stores it far better than reading the answer again. The guide runs that as a fixed procedure on one subtopic at a time, about twenty minutes a session.
-
Step 1 · Closed book
Cover the answers. Work through one subtopic and write down what you can. Leave blanks where you have nothing.
-
Step 2 · Open book
Go back to the top. Read each printed answer and write it out in full, including the ones you had right.
-
Step 3 · Closed book again
Same questions, same order, from memory. The gap between pass one and pass three is the session result.
Read the full method, the return schedule and the research behind it.
Around this topic
Edexcel International GCSE Computer Science Active Recall Guide
Data Types and Data Structures and every other topic, with the answers printed after each section.