ITEC 2140 Chapter 4-1
Sequence generation loop
A loop that generates a sequence of values that has a clear pattern
Counting loop
A loop that is controlled by a variable that keeps track of how many times a task has been performed by a loop throughout the iterations
Loop until done loop
A loop that is controlled by user input where the first input is obtained before the loop. At the end of each iteration, the program will get the next user input
Loop control variable
A variable to control the execution of a loop
Pre test
A while loop is also called a _____ loop
Add ++, --, or other increasing or decreasing incremental pattern
How do you update a control variable?
Loop body
The block of statements that are to be executed repetitively
Post test
The do-while loop is considered a(n) ________ loop.
A boolean expression
What is a loop condition?