Edexcel 1CP2 1.2.3: Algorithms with arithmetic, relational and logical operators
The free BugBot lesson that teach this point, a robot to try it on, and the past-paper questions that test it.
Lessons that teach it
- F2.3 else, elif and Boolean operators Decisions and loops
Choosing between outcomes, and joining conditions with and, or and not.
Try it on a robot
The task from F2.3 else, elif and Boolean operators, 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 2: A loyalty card with MOD and elif, and the value of the free items 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 8: Trace a loop that compares two binary strings with OR, NOT and AND 6 marks
- AQA 8525 June 2024 Paper 1, Question 2: Follow an IF, ELSEIF chain with NOT, OR, AND and MOD 5 marks
- AQA 8525 June 2024 Paper 1, Question 6: Essay marks with penalties for late essays, never below 0 7 marks
- AQA 8525 June 2024 Paper 1, Question 9: A data structure, a RECORD definition, and the dearer of two books 7 marks
- AQA 8525 June 2023 Paper 1, Question 15: Share a bill: loop until it is paid, then report the tip 8 marks
- AQA 8525 June 2022 Paper 1, Question 8: A bonus payment from items sold and years employed 7 marks
- AQA 8525 Sample Paper 1, Question 3: The dog biscuit algorithm: selection, iteration, subroutine calls and a data type 5 marks
- OCR J277 June 2025 Paper 2, Question 1: Normal, boundary and invalid test data, and a 1 to 100 range check 9 marks
- OCR J277 June 2025 Paper 2, Question 5(d): Validate a 4 character PIN that must not be 1234 or 4321 6 marks
- OCR J277 June 2024 Paper 2, Question 3(a), (b): Define a syntax error, then correct two logic errors in a range check 6 marks
The specification is Edexcel's own document; this page says which of our lessons teach point 1.2.3 and is not endorsed by the board.