Multiple Choice
Insert the missing code in the following code fragment.This fragment is intended to write an output file named dataOut.txt that resides in a folder named reports on the C: drive of a Windows system.
A) new PrintWriter("c:\\reports\\dataOut.txt")
B) new PrintWriter("c:/reports/dataOut.txt")
C) new PrintWriter("c://reports//dataOut.txt")
D) new PrintWriter("c:\reports\dataOut.txt")
Correct Answer:

Verified
Correct Answer:
Verified
Q42: Select an expression to complete the program
Q43: Which of the following is the correct
Q44: Which of the following statements about using
Q45: Assume inputFile is a Scanner object used
Q46: Insert the missing code in the following
Q48: When you start a Java program from
Q49: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q50: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q51: You wish to use the Scanner class's
Q52: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"