Multiple Choice
Which line completes this code fragment to define a text file named txtfile for reading? ____________________________________________________
String line = scan.nextLine() ;
A) Reader scan = new Reader(new File("txtfile") ) ;
B) FileReader scan = new File("txtfile") ;
C) Scanner scan = new Scanner(System.in) ;
D) Scanner scan = new Scanner(new File("txtfile") ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q1: You use _ and FileOutputStream objects to
Q3: The FileInputStream read method reads binary data.
Q4: Which of the following cannot be serialized?<br>I
Q5: Which file storage method is in human-readable
Q6: Assume we have a RandomAccessFile object, file,
Q7: The _ class is used when writing
Q8: What is the highest value for a
Q9: How many bytes does the read method
Q10: Based on the code below, the statement
Q11: Caesar cipher uses a shift of each