Branches Flashcards

1
Q

Branching

A

Directs a program to execute either one statement group or another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

if-else

A

If this is true, do this.

Otherwise, do that.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

multi-branch if-else

A

If A is true do 1.
Or if B is true do 2.
Otherwise do 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

nested if-else

A

if-else state that executes within a branch of an if-else statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Multiple if statements

A

Each if-statement is independent and multiple branches could execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Switch

A

One variable compared to several constant values. The first match is executed. If no match, the default case statement executes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly