Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 5 - No. 32)

What is the purpose of a 'FOR' loop in an algorithm?
To perform a set of instructions repeatedly for a specific number of times.
To select between different sets of instructions.
To input data into the algorithm.
To output data from the algorithm.

Explanation

A 'FOR' loop is used to repeat a block of code a predetermined number of times.

Comments (0)

Advertisement