80.7k views
5 votes
a while loop is called a pretest loop because the condition is tested after the loop has had one iteration.

User Idonnie
by
5.5k points

1 Answer

3 votes

Answer:

False.

Step-by-step explanation:

A while loop is called a pretest loop because the condition is tested before each iteration of the loop. If the condition is True, the loop will execute, otherwise it will not. This is in contrast to a post-test loop, such as a do-while loop, where the condition is tested after each iteration of the loop.

User Sam Beckham
by
4.5k points