6
AssignmentMultiple Choice

Iteration

Question 6 • VA-Information Technology Fundamentals B

What does a loop statement do?

Answer
A
It causes a section of code to be repeated a certain number of times.
B
It causes a section of code to be executed one time only.
C
It causes a section of code to end.
D
It causes a section of code to be repeated infinitely.

Explanation

A loop repeats a section of code. The repetition may be controlled by a count or by a condition, so it does not necessarily run infinitely or only once. Choice A, “It causes a section of code to be repeated a certain number of times,” best describes this purpose.

AI-written and checked against the verified answer.

Previous
Next