Look inside the Edexcel International GCSE Computer Science guide (4CP0)

Guide overview All 20 topics Sample questions Papers and weighting Look inside Questions and answers

Look inside the Edexcel International GCSE Computer Science guide

Questions for a subtopic print together. The answers for that section print after them. Nothing else is in the file.

EDEXCEL · INTERNATIONAL GCSE · 4CP0
Computer Science
Active Recall Guide
819 questions
Computer ScienceContents
Contents
20 topics, 73 subtopics
  1. Algorithms50
  2. Searching and Sorting Algorithms26
  3. Decomposition and Abstraction25
  4. Developing and Testing Code37
  5. Programming Constructs and Operators45
  6. Data Types and Data Structures41
  7. Input, Output and Validation30
  8. Subprograms27
  9. Binary80
  10. Data Representation34
  11. Data Storage and Compression53
  12. Encryption30
  13. Hardware and the CPU86
  14. Logic26
  15. and 6 more topics
AlgorithmsQuestions
Algorithms
What an algorithm is
  1. What is an algorithm?
  2. What are algorithms used for?
  3. Name four ways an algorithm can be expressed.
  4. What is pseudocode?
  5. Why is pseudocode used to plan programs?
  6. What is a flowchart?
  7. What does each flowchart symbol show?
  8. Why must every decision box in a flowchart have two exits?
  9. Why is a written description sometimes used for an algorithm?
AlgorithmsAnswers
Answers
What an algorithm is
  1. An algorithm is a precise sequence of steps that solves a problem or completes a task.
  2. Algorithms describe how to solve a problem before any code is written. A programmer then turns the algorithm into a program.
  3. An algorithm can be expressed as a flowchart or in pseudocode. An algorithm can also be a written description or program code.
  4. Pseudocode is a structured way of writing an algorithm using keywords and English-like statements, without following the strict syntax of a programming language.
  5. Pseudocode lets a programmer focus on the logic without worrying about syntax. Any programmer can read pseudocode and code it in their own language.
  6. A flowchart is a diagram that shows the steps of an algorithm using standard symbols joined by arrows.
  7. A rounded rectangle shows the start or end, and a parallelogram shows input or output. A rectangle shows a process and a diamond shows a decision. A rectangle with double side lines shows a subprocess, and arrows show the flow of control.
  8. A decision asks a question with a yes or no answer. Each answer leads to a different next step.
  9. A written description explains the steps in plain English. People with no programming knowledge can understand it.
Input, Output and ValidationQuestions
Input, Output and Validation
Validation
  1. What is validation?
  2. Why is validation needed?
  3. What is a range check?
  4. What is a length check?
  5. What is a presence check?
  6. What is a type check?
  7. What is a format check?
  8. What is a lookup check?
  9. Write Python code that keeps asking for a mark until it is between 0 and 100.
Input, Output and ValidationAnswers
Answers
Validation
  1. Validation is an automatic check by a program that input data is reasonable and follows set rules before it is accepted.
  2. Invalid data could produce wrong results or crash the program. Validation rejects bad data at the point of entry.
  3. A range check makes sure a value lies between a lower and an upper limit, such as a month from 1 to 12.
  4. A length check makes sure data has a set number of characters or falls within a range of lengths, such as a password of 8 to 20 characters.
  5. A presence check makes sure that a required field has not been left empty.
  6. A type check makes sure data is of the correct data type, such as a whole number for an age.
  7. A format check makes sure data matches a set pattern, such as a postcode or a date in the form DD/MM/YYYY.
  8. A lookup check makes sure data matches one of a list of allowed values, such as a valid country code.
  9. The code reads mark = int(input()), then while mark < 0 or mark > 100: mark = int(input()) asks again.
LogicQuestions
Logic
Truth tables
  1. What does the AND operator output in a logic statement?
  2. What does the OR operator output in a logic statement?
  3. What does the NOT operator output in a logic statement?
  4. Give the truth table for A AND B.
  5. Give the truth table for A OR B.
  6. What is a truth table?
  7. How many rows does a truth table need for three inputs?
  8. In what order are the input rows of a three-input truth table written?
  9. What is a logic statement?
LogicAnswers
Answers
Truth tables
  1. AND outputs 1, or True, only when both inputs are 1.
  2. OR outputs 1 when at least one input is 1.
  3. NOT outputs the opposite of its single input, so 1 becomes 0 and 0 becomes 1.
  4. The output is 0 for the inputs 00, 01 and 10. The output is 1 only for the input 11.
  5. The output is 0 only for the input 00. The output is 1 for the inputs 01, 10 and 11.
  6. A truth table lists every possible combination of inputs to a logic circuit and the output for each one.
  7. A truth table for three inputs needs 2³, which is 8 rows.
  8. The rows count up in binary from 000 to 111, so the first input changes every four rows and the last input changes every row.
  9. A logic statement combines inputs using AND, OR and NOT, with brackets to show the order. An example is X = (A AND B) OR NOT C.
Keep going
819
questions
73 subtopics

Scroll sideways to turn through the pages.

819 questions
Across 73 subtopics, every one of them from specification 4CP0.
One PDF
Print it, or work from a screen with a notebook beside you.
Answers after, not beside
Covering the answers is a matter of not turning the page, which is what makes the closed-book pass possible.

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.

Sent to your email on purchase as a PDF.Get the guide, £7

Edexcel International GCSE Computer Science Active Recall Guide

Every question paired with its answer, ready to work in three passes.

£7 GBP
Get the guide

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

Other Edexcel International GCSE guides

All Edexcel International GCSE guides All IGCSE guides