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
Answer: D
You might also like to view...
Comments
a) help improve program readability b) can be placed at the end of a line of code c) are ignored by the compiler d) All of the above.
The first bit in a 11-bit transmission waveform is the ____________________ bit.
Fill in the blank(s) with the appropriate word(s).
In object-oriented design, the first step in the problem-solving process is to identify the components called ____________________, which form the basis of the solution, and to determine how they interact with one another.
Fill in the blank(s) with the appropriate word(s).
Digital camcorders are similar to conventional ____ camcorders.
A. electronic B. manual C. analog D. binary