Explanatory Question
Name two jump statements and their use.
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.
(i) Break Statement: The break statement is used to exit a loop or terminate a switch statement before it has completed its normal course. It immediately ends the current loop iteration and jumps to the statement following the loop or switch block.
(ii) Continue Statement: The continue statement is used to skip the current iteration of a loop and proceed to the next iteration. It is particularly useful when you want to skip certain values or conditions within a loop.
First read the answer fully, then try to explain it in your own words. After that, open a few related questions and compare the concepts. This method helps you remember the topic for a longer time and improves exam preparation.