14
QuizMultiple Choice

Use Data Structures — Unit test

Question 14 • Introduction to Information Technology - EL3701

What can be written to perform a certain number of iterations or to iterate until a specific result is achieved?

Answer
A
an ordered data structure
B
a for loop
C
a print function
D
an array

Explanation

A for loop repeats a block of code a set number of times or iterates through items until a stopping condition is reached. An ordered data structure and an array store data, while a print function displays information; none of these perform repeated execution.

AI-written and checked against the verified answer.

Previous
Next