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
- F1.1 What a program is Programming basics
Instructions, one at a time, top to bottom. Running code and reading what comes back. - F2.4 Nested selection and match Decisions and loops
Decisions inside decisions, and choosing by exact value with a case statement. - F2.5 Count-controlled loops: for Decisions and loops
range, the loop variable, and repeating a known number of times. - F2.6 Condition-controlled loops: while Decisions and loops
Looping until something changes, break, and loops that never end. - 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.
- AQA 8525 June 2025 Paper 1, Question 1: Operators in a short program, and a trace of a while loop that doubles 7 marks
- AQA 8525 June 2025 Paper 1, Question 3: A coaching cost with three price bands 8 marks
- AQA 8525 June 2025 Paper 1, Question 5: Data types, and five inputs rewritten as a loop with one 8 marks
- AQA 8525 June 2025 Paper 1, Question 9: Which of five algorithms correctly total an array 2 marks
- AQA 8525 June 2024 Paper 1, Question 5: The output of a nested IF for three pairs of inputs 3 marks
- AQA 8525 June 2024 Paper 1, Question 8: Trace a loop over three arrays that uses DIV 6 marks
- AQA 8525 June 2024 Paper 1, Question 11: Authenticate against two username and password pairs until valid 7 marks
- AQA 8525 June 2024 Paper 1, Question 12.6, 12.7: Use given subroutines to check a row and to play until solved 10 marks
- AQA 8525 June 2024 Paper 1, Question 15: Move 1 or 2 along a row of cells, back to 0 on an X or past the end 8 marks
- AQA 8525 June 2023 Paper 1, Question 2: Read a nested WHILE loop that uses integer division 3 marks
- AQA 8525 June 2023 Paper 1, Question 6: Fill the gaps in a login routine 4 marks
- AQA 8525 June 2023 Paper 1, Question 12.2: Write your own linear search 7 marks
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.