Multiple choice technology testing

what is the keyword used to define how the counter variable in a or lext loop increments?

  1. A. ++

  2. B. Next

  3. C. Skip

  4. D. Step

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

In VBScript (used by QTP), the 'Step' keyword controls the For loop counter increment (e.g., 'For i = 1 To 10 Step 2' increments by 2). '++' is C-style syntax, 'Next' just marks loop end, and 'Skip' isn't a VBScript keyword.