Q. What is the correct syntax of open() function?

  • (A) file = open(file_name [, access_mode][, buffering])
  • (B) file object = open(file_name [, access_mode][, buffering])
  • (C) file object = open(file_name)
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) file object = open(file_name [, access_mode][, buffering])
Explanation: open() function correct syntax with the parameter details as shown below: file object = open(file_name [, access_mode] [, buffering])

Explanation by: Mr. Dubey
open() function correct syntax with the parameter details as shown below: file object = open(file_name [, access_mode] [, buffering])

πŸ’¬ Discussion

πŸ“Š Question Analytics

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