Q. What is the purpose of the Kernel#autoload method in Ruby?

  • (A) It automatically loads a specified file when a constant is accessed for the first time
  • (B) It loads all files in a directory when the program starts
  • (C) It reloads a file every time it is accessed
  • (D) It loads a file asynchronously to improve performance
πŸ’¬ Discuss
βœ… Correct Answer: (A) It automatically loads a specified file when a constant is accessed for the first time

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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