CBSE Class 11 Computer Science Question 47 of 161

Flow of Control — Question 29

Back to all questions
29
Question

Question 29

Consider the loop given below :

for i in range(3) :
    pass

What will be the final value of i after this loop ?

  1. 0
  2. 1
  3. 2 ✓
  4. 3
Answer