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.
- Algorithms50
- Searching and Sorting Algorithms26
- Decomposition and Abstraction25
- Developing and Testing Code37
- Programming Constructs and Operators45
- Data Types and Data Structures41
- Input, Output and Validation30
- Subprograms27
- Binary80
- Data Representation34
- Data Storage and Compression53
- Encryption30
- Hardware and the CPU86
- Logic26
- and 6 more topics
- What is an algorithm?
- What are algorithms used for?
- Name four ways an algorithm can be expressed.
- What is pseudocode?
- Why is pseudocode used to plan programs?
- What is a flowchart?
- What does each flowchart symbol show?
- Why must every decision box in a flowchart have two exits?
- Why is a written description sometimes used for an algorithm?
- An algorithm is a precise sequence of steps that solves a problem or completes a task.
- Algorithms describe how to solve a problem before any code is written. A programmer then turns the algorithm into a program.
- An algorithm can be expressed as a flowchart or in pseudocode. An algorithm can also be a written description or program code.
- Pseudocode is a structured way of writing an algorithm using keywords and English-like statements, without following the strict syntax of a programming language.
- Pseudocode lets a programmer focus on the logic without worrying about syntax. Any programmer can read pseudocode and code it in their own language.
- A flowchart is a diagram that shows the steps of an algorithm using standard symbols joined by arrows.
- 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.
- A decision asks a question with a yes or no answer. Each answer leads to a different next step.
- A written description explains the steps in plain English. People with no programming knowledge can understand it.
- What is validation?
- Why is validation needed?
- What is a range check?
- What is a length check?
- What is a presence check?
- What is a type check?
- What is a format check?
- What is a lookup check?
- Write Python code that keeps asking for a mark until it is between 0 and 100.
- Validation is an automatic check by a program that input data is reasonable and follows set rules before it is accepted.
- Invalid data could produce wrong results or crash the program. Validation rejects bad data at the point of entry.
- A range check makes sure a value lies between a lower and an upper limit, such as a month from 1 to 12.
- 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.
- A presence check makes sure that a required field has not been left empty.
- A type check makes sure data is of the correct data type, such as a whole number for an age.
- A format check makes sure data matches a set pattern, such as a postcode or a date in the form DD/MM/YYYY.
- A lookup check makes sure data matches one of a list of allowed values, such as a valid country code.
- The code reads mark = int(input()), then while mark < 0 or mark > 100: mark = int(input()) asks again.
- What does the AND operator output in a logic statement?
- What does the OR operator output in a logic statement?
- What does the NOT operator output in a logic statement?
- Give the truth table for A AND B.
- Give the truth table for A OR B.
- What is a truth table?
- How many rows does a truth table need for three inputs?
- In what order are the input rows of a three-input truth table written?
- What is a logic statement?
- AND outputs 1, or True, only when both inputs are 1.
- OR outputs 1 when at least one input is 1.
- NOT outputs the opposite of its single input, so 1 becomes 0 and 0 becomes 1.
- The output is 0 for the inputs 00, 01 and 10. The output is 1 only for the input 11.
- The output is 0 only for the input 00. The output is 1 for the inputs 01, 10 and 11.
- A truth table lists every possible combination of inputs to a logic circuit and the output for each one.
- A truth table for three inputs needs 2³, which is 8 rows.
- 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.
- 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.
questions
Scroll sideways to turn through the pages.
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.
Edexcel International GCSE Computer Science Active Recall Guide
Every question paired with its answer, ready to work in three passes.