Multiple Choice
Which of the following will open a file named MyFile.txt and allow you to append data to its existing contents?
A) FileWriter fwriter = new FileWriter("MyFile.txt", true) ;
PrintWriter outFile = new PrintWriter(fwriter) ;
B) FileWriter fwriter = new FileWriter("MyFile.txt") ;
PrintWriter outFile = new PrintWriter(fwriter) ;
C) PrintWriter outfile = new PrintWriter("MyFile.txt", true) ;
D) PrintWriter outfile = new PrintWriter(true, "MyFile.txt") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q26: A sentinel value _ and signals that
Q28: What will be the value of x
Q31: This type of loop is ideal in
Q32: The increment operator is:<br>A) ++<br>B) --<br>C) *=<br>D)
Q33: A loop that executes as long as
Q34: A loop that repeats a specific number
Q36: Java provides a set of simple unary
Q38: What will be the value of x
Q50: When the continue statement is encountered in
Q54: In the following code, what values could