Multiple Choice
Suppose we wanted to process a text file called "input.txt" using the Scanner object. Which of the following lines of code correctly creates the necessary Scanner object?
A) Scanner inputFile = new Scanner("input.txt") ;
B) Scanner inputFile = new Scanner(new InputFile("input.txt") ;
C) Scanner inputFile = new Scanner(new File(input.txt) ;
D) Scanner inputFile = new Scanner(new InputFile(input.txt) ;
E) Scanner inputFile = new Scanner(new File("input.txt") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q10: Which of the following statements best describes
Q11: Write a snippet of code that determines
Q12: An infinite loop is a compile-time error.
Q13: Assume numOne and numTwo are integers. How
Q14: Write a code fragment that determines how
Q16: In Java, a boolean expression is limited
Q17: A _ is an object that has
Q18: Using a while loop, write a code
Q19: Which of the following expressions best represents
Q20: What is output by the following code