Pearson Edexcel GCSE Computer Science (1CP2)Specification point 6.2.2

Edexcel 1CP2 6.2.2: Sequence, selection, repetition and iteration

The free BugBot lessons that teach this point, a robot to try it on, and the past-paper questions that test it.

Lessons that teach it

  1. F1.1 What a program is Programming basics
    Instructions, one at a time, top to bottom. Running code and reading what comes back.
  2. F2.4 Nested selection and match Decisions and loops
    Decisions inside decisions, and choosing by exact value with a case statement.
  3. F2.5 Count-controlled loops: for Decisions and loops
    range, the loop variable, and repeating a known number of times.
  4. F2.6 Condition-controlled loops: while Decisions and loops
    Looping until something changes, break, and loops that never end.
  5. F3.4 Iterating over a list Strings, lists and records
    Loops over items and indexes, totals, counts, min and max, and linear search.

Try it on a robot

The task from F1.1 What a program is, running here. Change the program and press Run.

Past paper questions on this

Real exam questions that test this, each worked through with a program you can run.

The specification is Edexcel's own document; this page says which of our lessons teach point 6.2.2 and is not endorsed by the board.