Q10-What is the purpose of the else clause in a while loop?
A. It is executed if the loop encounters an error.
B. It is executed when the loop variable reaches its maximum value.
C. It is executed when the loop condition becomes false.
D. It is used to define an alternative condition for the loop.
This question is part of this quiz :
Conditionals and Flow Control