6
AssignmentMultiple Choice

Conditional Statements

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 runs a section of code repeatedly, typically for a set number of times or while a condition is true. So A, “It causes a section of code to be repeated a certain number of times,” is the best choice. A loop does not necessarily run infinitely or only once.

AI-written and checked against the verified answer.

Previous
Next