28
QuizMultiple Choice

Use Data Structures — Cumulative exam

Question 28 • Introduction to Information Technology - EL3701

Which statement demonstrates the value of an iteration in programming?

Answer
A
An iteration can be used instead of many repetitive lines of code in a computer program.
B
An iteration makes a program end without having to press keys on the keyboard.
C
An iteration formats the code in a program into a neat indented form.
D
An iteration controls the order in which a program executes code.

Explanation

An iteration repeats a set of instructions, such as processing each item in a list. This lets a programmer use a loop instead of writing the same lines of code many times. Therefore, the statement that iteration can replace many repetitive lines of code is correct.

AI-written and checked against the verified answer.

Previous
Next