Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which keyword is used to come out of a loop only for that iteration?

  • A.break
  • B.continue
  • C.return
  • D.None of the mentioned

Answer: B

Correct answer: continue

continue abandons the current iteration and jumps to the next one - to the update expression in a for, or to the condition test in a while. break leaves the loop altogether, and return leaves the function.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.