Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Algorithms

 

Repetition

Repetition

  • Repetition means doing the same step over again.
  • The step can be repeated with different variables.
    • A variable is something that can change.
Repetition: example

Repetition: example

  • 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...

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.
  • This step is called a ‘repeat until’ instruction.
Repeat until: example

Repeat until: example

  • Put cake batter in each paper case.
  • Repeat until all the cases are filled
  • Then stop and go to the next step.
Jump to other topics

Practice questions on Algorithms (2/2)

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
    What is a variable?Multiple choice
  2. 2
  3. 3
  4. 4
Answer all questions on Algorithms (2/2)

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

Get started with Seneca Premium