151k views
0 votes
Question 17 of 25

Which option is an example of iteration in an algorithm?
OA. Instructing the computer to use a certain amount of its memory to
save the algorithm's data
OB. Instructing the computer to repeat a step over and over while a
certain condition is met
OC. Including an if-then statement to account for a specific condition
OD. Including a rigid sequence of events that the computer must
perform in an exact order
SUBMIT

User Mithin
by
8.4k points

1 Answer

4 votes

Answer: OB

Step-by-step explanation:

OB. Instructing the computer to repeat a step over and over while a certain condition is met. Iteration is a process of repeating steps in an algorithm in order to achieve a certain goal. In this case, the computer is instructed to repeat a step until a certain condition is met, thus allowing the algorithm to reach its goal.

User Sunwoo Yang
by
7.8k points