Algorithms (Edexcel GCSE Computer Science): Flashcards

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

Selection in programming

Choosing between two or more options based on conditions

Four fundamental programming building blocks

Sequence, selection, repetition, iteration

Shape representing selection in flowcharts

Diamond shape

Entry points to a selection diamond

Only one entry point

Exit paths from a selection diamond

Exactly two exit paths

Labels for selection diamond exit paths

Yes and no

Keywords indicating selection is needed

if, otherwise, choose, decide, depending on

Python structure for selection

if...elif...else

Purpose of if in Python selection

Checks the first condition

Purpose of elif in Python

Checks additional conditions (after the initial if)

Purpose of else in Python

Catches everything that doesn't match previous conditions

What elif creates in flowcharts

Additional selection paths (extra diamond symbols)

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

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