Branches Flashcards
1
Q
Branching
A
Directs a program to execute either one statement group or another
2
Q
if-else
A
If this is true, do this.
Otherwise, do that.
3
Q
multi-branch if-else
A
If A is true do 1.
Or if B is true do 2.
Otherwise do 3.
4
Q
nested if-else
A
if-else state that executes within a branch of an if-else statement
5
Q
Multiple if statements
A
Each if-statement is independent and multiple branches could execute
6
Q
Switch
A
One variable compared to several constant values. The first match is executed. If no match, the default case statement executes.