CBSE Class 11 Computer Science Question 45 of 161

Flow of Control — Question 27

Back to all questions
27
Question

Question 27

Consider the loop given below :

for i in range(-5) :
    print(i)

How many times will this loop run?

  1. 5
  2. 0 ✓
  3. infinite
  4. Error
Answer