Multiple Choice
Insert the missing code in the following code fragment.This fragment is intended to read an input file named dataIn.txt and write to an output file named dataOut.txt.
A) new File("dataIn.txt")
B) new Scanner(inputFile)
C) new Scanner("dataIn.txt")
D) new File(inputFileName)
Correct Answer:

Verified
Correct Answer:
Verified
Q63: Under which condition will the Scanner constructor
Q64: Consider the following code snippet. <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q65: Insert the missing code in the following
Q66: Your program wishes to open a file
Q67: An example of a fatal error that
Q69: Which of the following statements about command
Q70: Insert the missing code in the following
Q71: Assuming that inputFile is a Scanner object
Q72: Which method of an exception object will
Q73: You have opened a command prompt window