Lesson 3: Decision Control Structure Flashcards
1
Q
is used to test the condition. It checks boolean
condition: true or false
A
Java if statement
2
Q
The Java if statement tests the condition. It executes the _____ if condition is true.
A
if block
3
Q
The _________ also tests the condition. It executes the if block if condition is true otherwise else block is executed.
A
Java if-else statement
4
Q
The ___________ executes one condition from multiple statements
A
if-else-if ladder statement
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