Q: Which of the following is not a valid type of loop control statement?
-
A
continue
-
B
break
-
C
exit
-
D
pass
C
Answer:
C
Explanation:
In most programming languages, continue and break are used to control loops. The continue statement skips the current iteration and moves to the next iteration, while break is used to terminate the loop completely. exit is not a valid loop control statement, as it is typically used to terminate the program, not a loop. pass is a statement used in Python to do nothing but is not used as a loop control statement.
Related Topic:
Share Above MCQ