What is selection?
A set of steps to follow
A path through a solution
A decision
Why is selection important?
Selection allows us to include more than one path through a solution
Selection allows us to repeat steps in a solution
Selection allows us make our solution more efficient
How many paths can be followed from a decision?
As many as is needed
Three
Two
In pseudocode how is a decision represented?
IF-THEN-ELSE
IF-OTHERWISE
WHEN-DO
Which of the instructions IF, THEN and ELSE represents a question?
IF
THEN
ELSE
Which of the instructions IF, THEN and ELSE points to what to do if the answer to the question is FALSE?
Which of the instructions IF, THEN and ELSE points to what to do if the answer to the question is TRUE?
In a flowchart how is a decision represented?
With a trapezoid box
With a rectangular box
With a diamond-shaped box
What does the instruction ELSE IF allow?
Just one path through an algorithm
More than two paths through an algorithm
Only two paths through an algorithm
Which of the following instructions represent questions?
ELSE and ELSE IF
ELSE and THEN
ELSE IF and THEN