190k views
15 votes
FOR loops are considered to be which of the following:

A. primarily pretest conditional loops
B. used for conditional statements
C. counter controlled loops
D. post test conditional loops

User Chenlian
by
7.7k points

1 Answer

10 votes

Answer:

C. counter controlled loop

Step-by-step explanation:

A counter controlled loop, is a loop that repeats a specific number of times. If it is known how many times a loop must repeat or perform a certain task, it is a count controlled loop (for loop).

- It must initialize a counter variable to a starting value.

- It must test the counter variable by comparing it to a maximum value. When the counter variable reaches its maximum value, the loop terminates.

- It must update the counter variable during each iteration. This is usually done by incrementing the variable.

User Lavor
by
8.5k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.