1.

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

Answer» Correct answer is (d) All of the mentioned

The explanation is: The program will throw an error.


Discussion

No Comment Found