Repetition (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Repetition in programming
Repetition in programming
Making the computer perform the same set of instructions multiple times
Alternative term for repetition
Alternative term for repetition
Looping
Two main types of repetition
Two main types of repetition
Condition-controlled and count-controlled
Condition-controlled repetition definition
Condition-controlled repetition definition
Repetition where you don't know how many times you'll need to repeat
Python keyword for condition-controlled loops
Python keyword for condition-controlled loops
while
Count-controlled repetition definition
Count-controlled repetition definition
Repetition where you know exactly how many times you need to repeat
Python keyword for count-controlled loops
Python keyword for count-controlled loops
for
Special flowchart symbol for loops
Special flowchart symbol for loops
None - uses diamond shapes and backward arrows
What creates loop structure in flowcharts
What creates loop structure in flowcharts
Backward-pointing arrows
When to use condition-controlled repetition
When to use condition-controlled repetition
When validating user input or searching until something is found
When to use count-controlled repetition
When to use count-controlled repetition
When you need to do something a specific number of times
Characteristic of condition-controlled loops
Characteristic of condition-controlled loops
Unpredictable number of repetitions
