Lesson 3: Decision Control Structure Flashcards

1
Q

is used to test the condition. It checks boolean
condition: true or false

A

if statement

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

The Java if statement tests the condition. It executes the _____ if condition is true.

A

if block

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

The _________ also tests the condition. It executes the if block if condition is true otherwise else block is executed.

A

if-else statement

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

The ___________ executes one condition from multiple statements

A

if-else-if ladder statement

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

The ___________ represents the if block within another if block. Here, the inner if block condition executes only when outer if block condition is true

A

nested if statement

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