Algorithms (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Selection in programming
Selection in programming
Choosing between two or more options based on conditions
Four fundamental programming building blocks
Four fundamental programming building blocks
Sequence, selection, repetition, iteration
Shape representing selection in flowcharts
Shape representing selection in flowcharts
Diamond shape
Entry points to a selection diamond
Entry points to a selection diamond
Only one entry point
Exit paths from a selection diamond
Exit paths from a selection diamond
Exactly two exit paths
Labels for selection diamond exit paths
Labels for selection diamond exit paths
Yes and no
Keywords indicating selection is needed
Keywords indicating selection is needed
if, otherwise, choose, decide, depending on
Python structure for selection
Python structure for selection
if...elif...else
Purpose of if in Python selection
Purpose of if in Python selection
Checks the first condition
Purpose of elif in Python
Purpose of elif in Python
Checks additional conditions (after the initial if)
Purpose of else in Python
Purpose of else in Python
Catches everything that doesn't match previous conditions
What elif creates in flowcharts
What elif creates in flowcharts
Additional selection paths (extra diamond symbols)
