195k views
5 votes
Which of the following correctly describes the syntax of an If statement?

All of the above
On a line containing an If or ElseIf, the Then keyword always appears at the end of the line
A multi-way If statement can contain, at most, three ElseIf statements
For every If, there appears a matching End If unless the statement is a two-way If statement

User TinsukE
by
9.2k points

1 Answer

3 votes

if(Expression to be tested) {

code to execute

} else if(Expression to be tested) {

code to execute

}


you can have as many else ifs as you want. But that's what it looks like.

User Andrew Stein
by
8.3k points