Edexcel 1CP2 1.2.4: The output of an algorithm
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
- F2.7 Loop patterns Decisions and loops
Running totals, counting, finding the largest, nested loops and trace tables. - F5.4 Trace tables Algorithms
Following an algorithm line by line, and tracing to find a logic error.
Try it on a robot
The task from F2.7 Loop patterns, 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 5: Data types, and five inputs rewritten as a loop with one 8 marks
- AQA 8525 June 2025 Paper 1, Question 10: Records, and the smallest value in an array without min or sort 8 marks
- AQA 8525 June 2024 Paper 1, Question 14: Local variables, and a subroutine that counts busy days and returns the count 7 marks
- AQA 8525 June 2023 Paper 1, Question 5: Trace a flowchart with a loop 3 marks
- AQA 8525 June 2023 Paper 1, Question 10: Trace nested FOR loops over a list of scores and find the error 6 marks
- AQA 8525 June 2022 Paper 1, Question 10: Trace a REPEAT UNTIL loop with DIV, then compare it with WHILE 8 marks
- AQA 8525 June 2022 Paper 1, Question 13.2: Find a run of five in a sorted array of 100 cards 6 marks
- OCR J277 June 2025 Paper 2, Question 6(d): Trace a loop that totals an array, then refine it 7 marks
- OCR J277 June 2025 Paper 2, Question 6(e): Sell tickets in a loop until none are left 6 marks
- OCR J277 June 2024 Paper 2, Question 9(b): Trace an if, elseif, else algorithm that scores a javelin throw 4 marks
- OCR J277 June 2024 Paper 2, Question 9(f): Take teams and scores until stop, then output the winner 6 marks
- OCR J277 June 2023 Paper 2, Question 1(b) to (d): An assignment, the arithmetic operators, and a do until trace table 7 marks
The specification is Edexcel's own document; this page says which of our lessons teach point 1.2.4 and is not endorsed by the board.