Iteration (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Iteration
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

What is iteration?

Repeating instructions for each item in a data structure

Iteration is also known as what?

A type of loop

Flowchart shape for iteration setup box

Rectangle

Flowchart shape for iteration condition test

Diamond

Flowchart shape for iteration process box

Parallelogram

Critical flowchart element showing iteration

Backward arrow creating a loop structure

Type of repetition iteration represents in flowcharts

Count-controlled repetition

3 written algorithm phrases for iteration

For every..., For each..., While...

When to use Python for...in statement

To work with each item in a collection directly

When to use Python for...in range()

When you need to know the position/index of each item

When to use Python while loop

When you don't know exact number of repetitions needed

Risk of not updating counter in while loops

Creates an infinite loop

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

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