Is this a correct solution? If yes, please explain

Hi there Samrat. This quiz is tricky which you choose which one will output correctly. In this case, the code is:

for (var i = 0; i < 5; i = i + 1) {
    print(i);
}

The correct answer is 0, 1, 2, 3, 4. The output of the classic for loop runs from 0 to 4. Let’s take a look at the wrong answer.
0, 1, 2, 3, 4, 5: This answer is not correct since it runs from 0 to 4 until the test is false.

And the other wrong answer.
1, 2, 3, 4: The classic for loop creates i looping variable and set to 0 as a value. Then the test runs from 0 to 4 until the test is false. And it increments by 1.

Hope this helps. Try selecting the correct answer 0, 1, 2, 3, 4 so that you are pass. :smile:
Pummarin :smile: