The continue keyword is used to ___ the current iteration in a loop

44. The continue keyword is used to ___ the current iteration in a loop.

  1. Initiate
  2. Start
  3. End
  4. None of the mentioned above

Answer: C) End

Explanation:

The continue keyword is used to terminate the current iteration of a for loop (or a while loop) and proceed to the next iteration of the for loop (or while loop). With the continue statement, you have the option of skipping over the portion of a loop where an external condition is triggered, but continuing on to complete the remainder of the loop. As a result, the current iteration of the loop will be interrupted, but the program will continue to the beginning of the loop. The continue statement will be found within the block of code that is contained within the loop statement, and is typically found after a conditional if statement.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.