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

What is a 'flag' variable used for in an algorithm?
To store a numerical value.
To indicate the status of a condition.
To display output to the user.
To control the number of iterations in a loop.

Explanation

A flag variable is used to signal whether a certain condition is met during program execution.

Comments (0)

Advertisement