Multiple choice .net

In the For...Next statement the default value for the Step is:

  1. -1

  2. 1

  3. 2

  4. There is no default for the step value.

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

In a For...Next loop, the Step keyword determines the increment value for the counter variable. If the Step keyword is omitted, the compiler defaults to an increment of 1.