Convert algorithms 3 (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Convert algorithms 3
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 a condition-controlled loop?

Loop that repeats while a condition is true

Python statement for condition-controlled loops

while

How to identify a loop in a flowchart

Backward arrow pointing to earlier part

Flowchart shape that shows a condition

Diamond shape

What does != mean in Python?

Not equal to

When does a while loop stop?

When condition becomes false

Why must loop body change something?

To affect condition & avoid infinite loop

What causes an infinite loop?

Condition never becomes false

Common use of while loops

Input validation - keep asking until valid response

Python requirement for code inside loop

Must be indented

Key check for loop conditions

Must eventually become false

Common mistake with comparison operators

Using = instead of ==

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

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