Multiple choice

Which of the following is a selection statement in VB?

  1. For … Next Statement

  2. Do… While Statement

  3. If …Then Statement

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Visual Basic, the If...Then statement is a conditional selection statement used to execute code based on whether a condition is true or false. The other listed options, such as For...Next and Do...While, are looping or iteration statements rather than selection statements.