Conditional Statements Flashcards

1
Q

if statement structure

A

if (condition) {
what to do if condition is true
}

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

if else statement structure

A

if (condition) {
what to do if condition is true
} else {
what to do if condition is false
}

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

else if statement structure

A

if (condition) {
what to do if true
} else if (condition){
what to do
} else if (condition){
what to do
}

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

which conditional statement is for only 1 option

A

if statement

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

what conditional statement is for 2 options

A

if else statement

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

what conditional statement if for more than 2 options

A

else if statement

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