Conditionals | and Flow Control | Question 10

Last Updated :
Discuss
Comments

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.

Share your thoughts in the comments