Multiple Choice
Instead of requiring that a dummy value be entered after all values are processed, a ____-controlled loop initializes a variable on the outside of the loop and then evaluates the variable to see when it changes values. Its value is changed inside the loop body when the loop should exit.
A) counter
B) sentinel
C) state
D) change
Correct Answer:

Verified
Correct Answer:
Verified
Q24: What is a requirement of the sentinel-controlled
Q25: Inside the for statement, when you place
Q26: int counter = 0; while (counter <
Q27: for (int i = 0; i <
Q28: The most appropriate sentinel value that might
Q30: When you know the number of times
Q31: An off-by-one error is a common problem
Q32: To write a recursive solution, a base
Q33: The while statement is the only type
Q34: A(n) _ is a loop that has