M

Mr. Dubey • 52.26K Points
Coach

Q. Which of the following statements are true?

(A) when you open a file for reading, if the file does not exist, an error occurs
(B) when you open a file for writing, if the file does not exist, a new file is created
(C) when you open a file for writing, if the file exists, the existing file is overwritten with the new file
(D) all of the mentioned
Correct : Option (D)

Explanation:
 the program will throw an error.

Share

Discusssion

Login to discuss.

Be the first to start discuss.