39.5k views
0 votes
This type of loop will always be executed at least once. select one:

a. pre-test loop
b. post-test loop
c. sentinel loop
d. for loop

User Okoboko
by
5.7k points

1 Answer

3 votes
Post-test loop is a type of loop that will always be executed at least once.
A post-test loop means that its boolean expression is tested after each iteration. This type of loop looks like an inverted while loop and always performs at least one iteration, even if the boolean expression is false to begin with.
Correct answer:B
User EdgeCaseBerg
by
6.0k points