1.2.1
Algorithms
Test your knowledge with free interactive questions on Seneca — used by over 10 million students.
Algorithms
An algorithm is the steps and rules that are followed when completing a process. The main actions in an algorithm are sequence, selection and repetition.

Sequence
- The sequence of an algorithm is the order of the steps that make up the algorithm.
- E.g. the toppings cannot be put on the cakes until they are cooked.

Selection
- Selection is a yes or no choice.
- A yes or no choice can be thought of as an ‘if ... then ’ instruction.
- E.g. should the cakes be taken out of the oven?
- If an inserted knife comes out clean, then yes.
- If an inserted knife comes out dirty, then no.

Repetition
- Repetition means doing the same step over again.
- The step can be repeated with different variables (something that can change).
- The toppings must be placed on the cakes.
- The step is repeated for each cake (repetition) but the type of topping can change each time (variable).

Repeat until...
- Sometimes a step can be repeated until something happens.
- Then we can move to the next step.
- A step is repeated until something happens can be thought of as a ‘repeat until…’ instruction
- Put cake batter in each paper case.
- Repeat until all the cases are filled
- Then stop and go to the next step.
1Computational Thinking & Algorithms
1.1Computational Thinking
1.2Algorithms
1.2.1Algorithms1.2.2Pseudocode1.2.3Flow Diagrams1.2.4Logical Reasoning & Debugging1.2.5Reading Algorithms1.2.6Correcting Algorithms1.2.7Complete the Algorithm1.2.8Search Algorithms1.2.9Linear Search1.2.10Binary Search1.2.11Sort Algorithms1.2.12Bubble Sort1.2.13Insertion Sort1.2.14End of Topic Test - Algorithms
2Programming
2.1Programming Fundamentals
2.1.1Variables & Constants2.1.2Comments2.1.3Input & Output2.1.4Arithmetic Operators2.1.5Relational Operators2.1.6Boolean Operators2.1.7Sequence2.1.8Selection2.1.9Iteration2.1.10Subroutines2.1.11Scope2.1.12Data Types2.1.13Casting2.1.14Arrays2.1.152D Arrays2.1.16Lists2.1.172D Lists2.1.18Strings2.1.19Syntax Errors2.1.20Logic Errors2.1.21Runtime Errors2.1.22End of Topic Test - Programming
2.2Designing Code
3Hardware & Software
3.1Hardware
3.2Software
4Data
5The Internet
6Online Safety & Security
6.1Protecting Yourself Online
Jump to other topics
1Computational Thinking & Algorithms
1.1Computational Thinking
1.2Algorithms
1.2.1Algorithms1.2.2Pseudocode1.2.3Flow Diagrams1.2.4Logical Reasoning & Debugging1.2.5Reading Algorithms1.2.6Correcting Algorithms1.2.7Complete the Algorithm1.2.8Search Algorithms1.2.9Linear Search1.2.10Binary Search1.2.11Sort Algorithms1.2.12Bubble Sort1.2.13Insertion Sort1.2.14End of Topic Test - Algorithms
2Programming
2.1Programming Fundamentals
2.1.1Variables & Constants2.1.2Comments2.1.3Input & Output2.1.4Arithmetic Operators2.1.5Relational Operators2.1.6Boolean Operators2.1.7Sequence2.1.8Selection2.1.9Iteration2.1.10Subroutines2.1.11Scope2.1.12Data Types2.1.13Casting2.1.14Arrays2.1.152D Arrays2.1.16Lists2.1.172D Lists2.1.18Strings2.1.19Syntax Errors2.1.20Logic Errors2.1.21Runtime Errors2.1.22End of Topic Test - Programming
2.2Designing Code
3Hardware & Software
3.1Hardware
3.2Software
4Data
5The Internet
6Online Safety & Security
6.1Protecting Yourself Online
Practice questions on Algorithms
Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.
- 1
Unlock your full potential with Seneca Premium
Unlimited access to 10,000+ open-ended exam questions
Mini-mock exams based on your study history
Unlock 800+ premium courses & e-books