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.

  1. Data types

    Name the five data types.

    Show the answer
    The five data types are integer, real, Boolean, char and string.
  2. Data types

    What is a string?

    Show the answer
    A string is a sequence of characters, such as 'Hello world'.
  3. 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.
  4. 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.
  5. 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.
  6. 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'.
  7. 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.
  8. 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
Data Types and Data Structures is 41 of the 819 questions in the guide.Get the guide, £7

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.

  1. Step 1 · Closed book

    Cover the answers. Work through one subtopic and write down what you can. Leave blanks where you have nothing.

  2. 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.

  3. 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

All 20 topics Guide overview

Edexcel International GCSE Computer Science Active Recall Guide

Data Types and Data Structures and every other topic, with the answers printed after each section.

£7 GBP
Get the guide

Digital PDF, sent to the email address on your order.