Multiple Choice
Assuming the variable n is an integer that stores a positive value, which of the following is a loop with a bound that could be problematic?
A) for (i = 1; i != n; i++)
B) for (years = n; years < 0; years--)
C) for (i = 1; i <= n; i++)
D) for (int i = 1; i <= 10; i++)
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q15: What output does this while loop generate?
Q16: What does the method below return? <img
Q17: What changes do you need to make
Q18: What is the last output line of
Q19: What will be printed by the statements
Q21: Which of the following loops executes 8
Q22: How do you fix this code snippet
Q23: What is the best strategy for avoiding
Q24: What are the values of i and
Q25: What is the output of this code