Solved

If You Attempt to Open a File with the Open

Question 27

Multiple Choice

If you attempt to open a file with the Open file mode, what happens if the file does not exist?


A) The file is created and then opened for use.
B) The program returns a prompt to the user asking if the file should be created.
C) The program will return a null object, and all data written to the file will be discarded.
D) The program throws a System.IO.FileNotFoundException error.

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