-
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
- Share this MCQ
D
Answer:
D
Explanation:
Given all options are true, when
we open a file for recording, if the file does not
exist, an error occurs. When we open a file for
writing, if the file does not exist, a new file is
created.
When we open a file for writing, if the file
exists, the existing file is overwritten with the
new file.
Related Topic:
Share Above MCQ