Which keyword immediately exits a loop?

  1. continue
  2. exitloop
  3. break
  4. pass
Answer

C) break

break leaves the loop; continue skips to the next repetition. SLO CS-11-C-02

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise