410,320 views
3 votes
3 votes
a while loop is called a pretest loop because the condition is tested after the loop has had one iteration.

User Ahmed Kesha
by
2.6k points

1 Answer

18 votes
18 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 Dstaley
by
2.7k points