int sum = 0;int limit = console.nextInt();int counter = 0;while (counter <= limit){      entry = console.nextInt();      sum = sum + entry;      counter++;}System.out.println(sum);The above code is an example of a(n) ____ while loop.

A. flag-controlled
B. counter-controlled
C. EOF-controlled
D. sentinel-controlled


Answer: B

Computer Science & Information Technology

You might also like to view...

Standards are specific instructions on how to handle a specific issue

Indicate whether the statement is true or false.

Computer Science & Information Technology

Which of the following are categories of drivers for Windows? (Choose all that apply.)

bus drivers block drivers function drivers filter drivers network drivers

Computer Science & Information Technology

The formula =$C3*D3 is located in cell B2. If this was copied and pasted into cell B3, what would the resulting formula be:

A. =$C3*$D4 B. =$C$3*C3 C. =$C4*D4 D. =C4:D4 E. =$C4*E3

Computer Science & Information Technology

Darren needs a picture in his document to appear as if it was painted using a brush. He should do which of the following?

A) Modify the picture color. B) Apply a correction to the picture. C) Apply an artistic effect. D) Apply a picture style.

Computer Science & Information Technology