Matching
Match each term with the correct statement below.
Premises:
tests the loop-continuing condition at the end, or bottom, of the loop
Responses:
sentinel value
loop body
garbage value
loop control variable
iterator
for loop
while loop
do-while loop
pretest loop
Correct Answer:
Premises:
Responses:
sentinel value
loop body
garbage value
loop control variable
iterator
for loop
while loop
do-while loop
pretest loop
Premises:
sentinel value
loop body
garbage value
loop control variable
iterator
for loop
while loop
do-while loop
pretest loop
Responses:
Related Questions
Q22: What types of variables should be initialized?
Q23: A loop that falls entirely within the
Q24: Write a while loop equivalent to the
Q25: If the expression in the while statement
Q26: What common pitfall can you identify in
Q28: Match each term with the correct statement
Q29: What kind of C++ expression can be
Q30: Match each term with the correct statement
Q31: What common pitfall can you identify in
Q32: When should the loop control variable be