Multiple Choice
Consider the following code snippet. Scanner inputFile = new Scanner("hoursWorked.txt") ;
Which of the following statements is correct?
A) This code will treat the string "hoursWorked.txt" as an input value.
B) This code will create a new file named "hoursWorked.txt".
C) This code will open an existing file named "hoursWorked.txt" for reading.
D) This code will open a file named "hoursWorked.txt" for writing.
Correct Answer:

Verified
Correct Answer:
Verified
Q15: Which of the following statements about checked
Q81: Consider the following code snippet: PrintWriter outputFile
Q82: Which of the following statements about the
Q83: Consider the following code snippet: File inputFile
Q85: Which of the following statements about reading
Q87: The Java compiler requires that your program
Q88: Insert the missing code in the following
Q89: Which of the following statements about reading
Q90: When reading words with a Scanner object,
Q91: Under which condition will the Scanner constructor