Repetition (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Repetition
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Repetition in programming

Making the computer perform the same set of instructions multiple times

Alternative term for repetition

Looping

Two main types of repetition

Condition-controlled and count-controlled

Condition-controlled repetition definition

Repetition where you don't know how many times you'll need to repeat

Python keyword for condition-controlled loops

while

Count-controlled repetition definition

Repetition where you know exactly how many times you need to repeat

Python keyword for count-controlled loops

for

Special flowchart symbol for loops

None - uses diamond shapes and backward arrows

What creates loop structure in flowcharts

Backward-pointing arrows

When to use condition-controlled repetition

When validating user input or searching until something is found

When to use count-controlled repetition

When you need to do something a specific number of times

Characteristic of condition-controlled loops

Unpredictable number of repetitions

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.