Multiple Choice
static final int EndVal = -1;
Int double;
Int num = console.nextInt() ;while (num != EndVal)
{
Double = num * 2;
System.out.println(double) ;
Num = console.nextInt() ;
}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
Q1: The do...while loop has an exit condition
Q9: Which of the following is not a
Q25: A syntax error will result if the
Q27: If a continue statement is placed in
Q38: Which of the following is true about
Q40: Which of the following loops is guaranteed
Q40: int i;for (i = 0; i <=
Q44: What is the output of the following
Q45: Which of the following is NOT a
Q49: 1, 1, 2, 3, 5, 8, 13,