Algorithms | Edexcel International GCSE Computer Science (4CP0)

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

Algorithms

  • 50 questions
  • 5 subtopics
  • Paper 1
  • Paper 2

Algorithms is examined in Paper 1, Principles of Computer Science, and Paper 2, Application of Computational Thinking.

It covers what an algorithm is; constructing algorithms; understanding what an algorithm does; finding and correcting errors; and coding and choosing algorithms.

Sample questions from Algorithms

Answer each one closed book first, then open the answer.

  1. What an algorithm is

    What is an algorithm?

    Show the answer
    An algorithm is a precise sequence of steps that solves a problem or completes a task.
  2. What an algorithm is

    Why is pseudocode used to plan programs?

    Show the answer
    Pseudocode lets a programmer focus on the logic without worrying about syntax. Any programmer can read pseudocode and code it in their own language.
  3. Constructing algorithms

    Name the three programming constructs used to build algorithms.

    Show the answer
    The three constructs are sequence, selection and iteration.
  4. Constructing algorithms

    How is a value assigned to a variable in the pseudocode command set?

    Show the answer
    A value is assigned with SET, for example SET Total TO 0.
  5. Understanding what an algorithm does

    How should the purpose of an algorithm be explained?

    Show the answer
    The explanation states what the algorithm achieves overall. The explanation then describes the inputs, loops, decisions and outputs it uses.
  6. Understanding what an algorithm does

    What is the purpose of a variable used as a counter?

    Show the answer
    A counter records how many times something has happened, such as how many values met a condition.
  7. Finding and correcting errors

    What is a trace table?

    Show the answer
    A trace table records the value of each variable, and any output, at each step of an algorithm as it is worked through by hand.
  8. Finding and correcting errors

    Complete a trace for: SET Total TO 0, then FOR Count FROM 1 TO 3 DO SET Total TO Total + Count END FOR, then SEND Total TO DISPLAY.

    Show the answer
    Total is 1 after the first pass, 3 after the second and 6 after the third. The output is 6.

The 5 subtopics

One subtopic is one session. Work down the list.

Subtopic What it covers Questions
What an algorithm is What algorithms are and what they are for, and how flowcharts, pseudocode, written descriptions and program code express them. 9
Constructing algorithms Building algorithms from sequence, selection and iteration, written in the pseudocode command set with SET, SEND and RECEIVE. 10
Understanding what an algorithm does Working out the purpose of an algorithm, the role of totals, counters and flags, and the output for given data. 11
Finding and correcting errors Using trace tables to find and fix errors such as a total reset inside a loop, a wrong comparison or a loop that never ends. 9
Coding and choosing algorithms Turning pseudocode into Python, how data structures and data values affect the choice of algorithm, and judging fitness for purpose. 11
Algorithms is 50 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

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