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

What is the purpose of the 'FOR' loop in a programming context?
To select between different options in a program.
To repeat a block of code a fixed number of times.
To check for errors in a program.
To define variables within a program.

Explanation

The 'FOR' loop is used to execute a set of instructions repetitively.

Comments (0)

Advertisement