.
Loop
Sequence
Selection
Case
Has one entry point
Has two exit points
Refers to a counter that increases on each pass through the loop
Contains a body that must execute at least one time
Set the loop control value equal to a sentinel during each iteration.
Initialize a loop control variable before the loop starts.
Compare the loop control value to a sentinel during each iteration.
Alter the loop control variable during each iteration.
Loop body
Loop controls
Sequences
Sentinels
The number of times an event has occurred
The number of machine cycles required by a segment of a program
The number of loop structures within a program
The number of times software has been revised
Incrementing
Decrementing
Resetting
Digesting
A loop that follows a prompt that asks a user how many repetitions to make and uses that value to control the loop
A loop that executes exactly 10 times
Both of the above
None of the above
A loop that executes 1000 times
A loop that executes as long as a user continues to enter valid data
Both of the above
None of the above
Subtract 1 from it
Set it to 0
Reduce it by one-tenth
Remove it from a program
Inner
Captive
Unstructured
Outer
None of the above
Both must be the same type—definite or indefinite
One must end before the other begins
They typically share a loop control variable
Its syntax is concise
Infinite loops are prevented
Unlike a while loop, a for loop can be nested
Unlike a while loops, a for loop can have multiple entry and exit points
Summary
Accumulator
Final
Detailless
1
0
10
100
Different in each iteration
The same for each iteration
1
0
None of the above
Subtract 1 from the variable
Reset the variable to 0
Delete the variable from the program
Validate data
Employ offensive programming
Use object orientation
Count loop iterations
Forcing
Accumulating
Validating
Pushing
Use a method built into the programming language
Prompt the user to verify that the type is correct
Include a statement at the beginning of the program that lists the data types allowed
All of the above
All of the above
Coded by the programmer rather than input by a user
Within a required range
The correct data type
Wait!
Here's an interesting quiz for you.