Solved

Static Final Int EndVal = -1;

Question 47

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions