πŸ“Š Ruby
Q. What is the result of using File.open() with the block syntax in Ruby?
  • (A) The file remains open after the block is executed
  • (B) The file is opened in write mode
  • (C) The file is opened in read mode
  • (D) The file is automatically closed at the end of the block
πŸ’¬ Discuss
βœ… Correct Answer: (D) The file is automatically closed at the end of the block

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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