Solved

If You Want to Append Data to an Existing Binary

Question 53

Multiple Choice

If you want to append data to an existing binary file, BinaryFile.dat, which of the following statements would you use to open the file?


A) FileOutputStream fstream =
New FileOutputStream("BinaryFile.dat") ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream) ;
B) FileOutputStream fstream =
New FileOutputStream("BinaryFile.dat", false) ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream) ;
C) FileOutputStream fstream =
New FileOutputStream("BinaryFile.dat", true) ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream) ;
D) IFileOutputStream fstream =
New FileOutputStream("BinaryFile.dat") ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream, true) ;

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents