Flashcards
Unit 1, Lesson 3: Selection
Cards in this deck (3)
- 1SequenceThe steps are executed one at a time
The order in which the steps are written is the order in which they are executed
Each step is executed exactly once - 2SelectionThe process that allows a computer to compare values and then decide what course of action to take
The principle of choosing which action to take based on certain criteria - 3IF… THEN… ELSE… ENDIFProgram flow is controlled by evaluating a boolean condition which evaluates to true or false
The condition specifies the circumstances in which the steps are to be executed
If the condition is true then one or more statements are executed
If the condition is false the statements are skipped and control passed to the next statement