5. repetition Flashcards
What is the definition of repeat?
To repeat is to do something again and again.
What is repetition used for in code?
Repetition is used to repeat the code.
What are repetition statements called?
Repetition statements are called loops.
How does using a loop help?
Using a loop is easier to manage and edit the program.
Name 3 types of loops.
● Forever loop
● Counter loop
● Conditional loop
What does a forever loop do?
Forever loop makes the code always repeats the command unless you stop the program.
What does a counter loop do?
A counter loop repeats the code a set number of times.
What is a conditional loop? Give an example from scratch.
A conditional loop is a loop controlled by a logical test.
For example in Scratch, repeat until block repeats the code until the logical test is true.