Ch. 4.6: The if/else if Statement Flashcards

1
Q

What is the if/else if statement?

A

The if/else statement tests a series of conditions. If is often simpler to test a series of conditions with the if/else if statement than with a set of nested if/else statements.

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

What is a trailing else?

A

The last else clause, which does not have an if statement following it is referred to at the trailing else.

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