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

Verified
Correct Answer:
Verified
Q80: Insert the missing code in the following
Q81: Which of the following statements about the
Q82: When reading words with a Scanner object,
Q83: Assuming that the string input contains the
Q84: Select the missing expression in the code
Q86: What is recommended if the standard library
Q87: Which of the following statements about a
Q88: Consider the following code snippet.<br>Scanner inputFile =
Q89: Which of the following is the correct
Q90: The PrintWriter class is an enhancement of