in Education by
What is the difference between break statement and continue statement ? Select the correct answer from above options

1 Answer

0 votes
by
Answer: Following are the important differences between continue and break. Break: 1- Break statement mainly used to terminate the enclosing loop such as while, do-while, for or switch statement wherever break is declared. 2- Break statement resumes the control of the program to the end of loop and made executional flow outside that loop. 3- As mentioned break is used for the termination of enclosing loop. 4- Break statement can be used and compatible with ‘switch’, ‘label’. Continue: 1- Continue statement mainly skip the rest of loop wherever continue is declared and execute the next iteration. 2- Continue statement resumes the control of the program to the next iteration of that loop enclosing ‘continue’ and made executional flow inside the loop again. 3- On other hand continue causes early execution of the next iteration of the enclosing loop. 4- We can’t use continue statement with ‘switch’,’lablel’ as it is not compatible with them.

Related questions

0 votes
    Differentiate between break and System. exit(0). Answer within 5 minutes and ur answer will be marked THE BRAINLIEST ANSWER! Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    You can differentiate between the automatic and manual page breaks by looking at the page break line. * a. Colour ... Symbol d. Pattern Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    What is break, continue and pass in Python?...
asked Dec 6, 2020 in Technology by JackTerrance
0 votes
    Which party has been, in power in West Bengal without a break for 30 years ? 1) Communist Party of India ( ... . 4) Trinamool Congress. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    can be used to break continuous text to one or more sentences Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    can be used to break continous text to one or more sentences Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Difference between province and state Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Write the difference between maximum and minimum with example Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    what is the difference between sum and cumulative sum? how do you perform the two on dataframe? Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    What are the wrapper classes ? What is the difference between scanner class and wrapper class ? 100 points . Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    The main difference between application and system software is that: 1 point Application software is stored in memory ... for computer Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    What is the difference between equals() and method and == operator? Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    What is the difference between hub,switch and router?In tabular form? Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
...