Explanation:a is used to indicate that data is to be apended. 4. Which of the following statements are true? (multiple answers allowed)
A. A. When you open a file for reading, if the file does not exist, an error occurs.
B. When you open a file for reading, if the file does not exist, the program will open an empty file.
C. When you open a file for writing, if the file does not exist, a new file is created.
D. When you open a file for writing, if the file exists, the existing file is overwritten with the new file.
Answer:A
Explanation:a is used to indicate that data is to be apended. 4. Which of the following statements are true? (multiple answers allowed)
A. A. When you open a file for reading, if the file does not exist, an error occurs. B. When you open a file for reading, if the file does not exist, the program will open an empty file. C. When you open a file for writing, if the file does not exist, a new file is created. D. When you open a file for writing, if the file exists, the existing file is overwritten with the new file.
Explanation:The program will throw an error.