Solved

Insert the Missing Code in the Following Code Fragment

Question 75

Multiple Choice

Insert the missing code in the following code fragment.This fragment is intended to read an input file named dataIn.txt that resides in a folder named payroll on the C: drive of a Windows system. Insert the missing code in the following code fragment.This fragment is intended to read an input file named dataIn.txt that resides in a folder named payroll on the C: drive of a Windows system.    A) new File(c://payroll// dataIn.txt )  B) new File( c:\payroll\dataIn.txt )  C) new File( c:\\payroll\\dataIn.txt )  D) new File(c:/payroll/ dataIn.txt )


A) new File(c://payroll//"dataIn.txt")
B) new File("c:\payroll\dataIn.txt")
C) new File("c:\\payroll\\dataIn.txt")
D) new File(c:/payroll/"dataIn.txt")

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions