Multiple choice technology testing

Which of the following looping statements are available in QTP?

  1. For next,Do loop, Switch Case

  2. For next, Do loop, While end

  3. If then, While end, Do loop

  4. For next, Switch case, If then

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

QTP uses VBScript, which provides For...Next, Do...Loop, and While...Wend (or Do While...Loop) as looping constructs. Option B correctly identifies these three. Option A incorrectly includes 'Switch Case' which is a conditional statement, not a loop. Option C mixes 'If then' which is conditional, not iterative.