Multiple choice

How does a FOR loop start?

  1. for (i = 0; i <= 5)

  2. for i = 1 to 5

  3. for (i <= 5; i++)

  4. for (i = 0; i <= 5; i++)

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

A standard for loop consists of three parts: initialization, condition, and increment, all inside parentheses.