Direction: Choose the correct option
Q1.
What does the `break` statement do?
Direction: Choose the correct option
Q2.
What does the `continue` statement do?
Direction: Choose the correct option
Q3.
What is the purpose of the `else` clause in a loop?
Direction: Choose the correct option
Q4.
Given `for i in range(3): if i==1: break; print(i)`, what prints?
Direction: Choose the correct option
Q5.
What does the `pass` statement do?
Direction: Choose the correct option
Q6.
What will `for i in range(3): if i==1: continue; print(i)` output?
Direction: Choose the correct option
Q7.
What is the result of `while False: pass else: print('done')`?
Direction: Choose the correct option
Q8.
Can you use `else` with a `while` loop?
Direction: Choose the correct option
Q9.
How do you break out of a nested loop completely?
Direction: Choose the correct option
Q10.
What does the `exit()` function do?
