Podcast
Questions and Answers
What is the purpose of the 'break' statement?
What is the purpose of the 'break' statement?
- To return a value from a loop
- To continue to the next iteration of a loop
- To skip the current iteration of a loop
- To stop the execution of a loop (correct)
Which statement is used to stop a loop?
Which statement is used to stop a loop?
- Break (correct)
- Continue
- Exit
- Return
Which of the following statements is NOT used to control the flow of a loop?
Which of the following statements is NOT used to control the flow of a loop?
- Return
- Continue
- Break
- Exit (correct)