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
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned
Explanation: the program will throw an error.

Explanation by: Mr. Dubey
the program will throw an error.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
567
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate