Which of the following statements is always true for a loop structure? Loop iterations only end when a break statement is reached. The loop must include a control variable. The loop will repeatedly execute a set of instructions. The loop will repeatedly execute a set of instructions until a condition evaluates to false.
Most of the answer choices *can* be true of loops, but only one of them is *always* true of loops Loops *can* end when a break statement is reached, but that is certainly not the only way they end Some loops, like for-loops do contain control variables, but while-loops do not require them, so this statement is not always true Loops do always repeatedly execute a set of instructions--that is kind of the definition of a loop! The last statement is true of while-loops, but for-loops do not depend on a condition evaluating to "true" in order to continue
ITERATION: Loops to repeat a block of code Applies to loops Will repeat execution of a set of instructions until a certain condition is reached Must include a starting condition and an execution statement that updates the control variable
Im thinking C.) The loop will repeatedly execute a set of instructions.
Because this will always be true for a loop structure
I think you're right. That is indeed always true of loops. Repeatedly executing a set of instructions is pretty much what loops are for!
Yess indeed
Join our real-time social learning platform and learn together with your friends!