asked 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.

asked
User Idonnie
by
8.7k 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.

answered
User Sam Beckham
by
8.2k points