60.2k views
1 vote
The condition that determines whether the task to repeat is finished is known as the loop control expression.

a) True
b) False

1 Answer

3 votes

Final answer:

The condition that dictates repetition of a loop, known as the loop control expression, is true. This boolean expression determines whether the loop continues or stops based on its true or false value.

Step-by-step explanation:

The statement is true. The loop control expression, often known as a loop condition, is what determines whether the execution of a loop should continue or stop. The loop control expression is usually a boolean expression that evaluates to true or false. For example, in a 'for' loop, the control expression might check if a variable has reached a certain number. The loop will continue to execute as long as the condition is true, and it will cease when it becomes false.

User Meenu
by
8.0k points

No related questions found