ch = inFile.next().charAt();while (inFile.hasNext()){      System.out.println(ch);      ch = inFile.next().charAt();}The above code is an example of a(n) ____ loop.

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


Answer: C

Computer Science & Information Technology

You might also like to view...

The list of available fonts in the Fonts gallery may differ, depending on what fonts you have installed and the type of printer you are using.____________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

How might the clocks in two computers that are linked by a local network be synchronized without reference to an external time source? What factors limit the accuracy of the procedure you have described? How could the clocks in a large number of computers connected by the Internet be synchronized? Discuss the accuracy of that procedure.

What will be an ideal response?

Computer Science & Information Technology

Using _______ automatically fills and increments values.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When the UNIX Processor Manager is deciding which process from the READY queue will be loaded into memory to be run first, it chooses the process ____.

A. with the lowest priority B. which has been waiting longest for an execution slot C. with the least amount of time remaining to execute D. with the longest time spent on the secondary storage

Computer Science & Information Technology