76.9k views
4 votes
Break and continue statements allow you to:

A. prevent flags.
B. control a sentinel value.
C. close loops.
D. alter the flow of a program.

1 Answer

4 votes

Answer:

D: Alter the flow of a program

Step-by-step explanation:

Break statements are used to terminate the current loop and resume execution at the next statement. Continue statements are used to skip over the part of a loop where an external condition occurs/is triggered, but will go on the complete the rest of the loops.

Therefore, the answer is D because both of these statements alter the flow of a program whether it is terminating or skipping.

User Sebdalgarno
by
6.7k points