IT 114: Introduction to Java
Class 22 Ungraded Quiz

  1. Can a Scanner object only be used with input from the keyboard?


  2. What do you call the string used the mark the end of one token and the beginning of the next?


  3. Can a Scanner object read a file of numbers with more than one number on each line?


  4. By default what does a Scanner object use to mark the end of one token and the beginning of the next?


  5. If you were totaling the numbers in a file and were adding each number to the variable total what would you give total as it's first value?


  6. If you were writing a program to find the maximum value which was stored in the variable max what would you give max as it's first value?


  7. If you were writing a program to find the maximum value which was stored in the variable min what would you give min as it's first value?


  8. What do you use to read information from a file?


  9. What argument do you need to create the object needs to read a file?


  10. What kind of control structure do you use to read the information in a while?