Assume that inputFile references a Scanner object that was used to open a file. Which of the following while loops is the correct way to read data from the file until the end of the file is reached?
a. while (inputFile.nextLine == " ")
{ ... }
b. while (inputFile != null)
{ ... }
c. while (!inputFile.EOF)
{ ... }
d. while (inputFile.hasNext())
{ ... }
d. while (inputFile.hasNext())
{ ... }
You might also like to view...
Shape hints work most effectively when arranged in a ____ pattern.
A. topographical B. random C. clockwise or counterclockwise D. Any of the above
Express 10 feet in inches (use 1 foot is 12 inches).
What will be an ideal response?
You can use a _____ function to return a value from a table that is based on an approximate match lookup.
A. VLOOKUP B. VAVERAGE C. VMATCH D. VAPPROXIMATE
Use the ____ command to export a MySQL table to a text file.
A. EXPORT TABLE B. SELECT INTO OUTFILE C. OUTPUT TEXT FILE D. CREATE OUTFILE