Multiple choice

Which of the following codes prints computer five times with its numbering using do-while loop?

  1. Dim i as integerPrivate Sub Command1_Click ()i = 1Do until i > 5Print computer; ii = i + 1LoopEnd Sub

  2. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 5Print computer; ii = i + 1LoopEnd Sub

  3. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 8Print computer; ii = i + 1LoopEnd Sub

  4. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 8Print computer; ii = i + 1;LoopEnd Sub

  5. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 3Print computer; ii = i + 1;LoopEnd Sub

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

This is the correct code.