Direction: Choose the correct option
Q1.
Which keyword is used to start a for loop?
Direction: Choose the correct option
Q2.
What will be the output of `for i in range(3): print(i)`?
Direction: Choose the correct option
Q3.
What does `range(5, 10)` produce?
Direction: Choose the correct option
Q4.
How do you iterate over a list with indices?
Direction: Choose the correct option
Q5.
What is the output of `for i in []: print(i)`?
Direction: Choose the correct option
Q6.
Which statement is used to skip the current iteration in a loop?
Direction: Choose the correct option
Q7.
What does `break` do in a loop?
Direction: Choose the correct option
Q8.
What is the correct way to write a while loop that runs 5 times?
Direction: Choose the correct option
Q9.
What is the output of `i=0; while i<3: print(i); i+=1`?
Direction: Choose the correct option
Q10.
Which of the following is a valid infinite loop?
