Multiple Choice
int sum = 0;int limit = console.nextInt() ;
Int counter = 0;while (counter <= limit) {
Entry = console.nextInt() ;
Sum = sum + entry;
Counter++;
}The above code is an example of a(n) ____ while loop.
A) flag-controlled
B) counter-controlled
C) EOF-controlled
D) sentinel-controlled
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: In the for statement, if the logical
Q14: A loop is a control structure that
Q15: The output of the Java code, assuming
Q20: int i;for (i = 0; i <=
Q22: Which of the following does not have
Q24: int x = 27;<br>Int y = 10;do<br>X
Q42: EOF-controlled while loop is another name for
Q43: A loop that continues to execute endlessly
Q46: Because a do...while loop is a post-test
Q47: Like a do...while loop, the body of