Ask your own question, for FREE!
Computer Science 8 Online
kekeman:

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.

SmokeyBrown:

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

kekeman:

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

kekeman:

Im thinking C.) The loop will repeatedly execute a set of instructions.

kekeman:

Because this will always be true for a loop structure

SmokeyBrown:

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!

kekeman:

Yess indeed

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!