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.
Answer: D
Computer Science & Information Technology
You might also like to view...
The ________ attribute of the bgsound element specifies the location of the sound file
Fill in the blank(s) with correct word
Computer Science & Information Technology
A(n) ________ gives a visual representation of information that is used to effectively communicate ideas
A) clustered bar chart B) SmartArt graphic C) organization chart D) screen clipping
Computer Science & Information Technology