Q. What is the purpose of the "Law of Least Astonishment" in Ruby programming?

  • (A) To minimize the number of lines of code in a program
  • (B) To ensure that the behavior of code is intuitive and predictable
  • (C) To prioritize the performance of code over its readability
  • (D) To minimize the number of lines of code in a program
πŸ’¬ Discuss
βœ… Correct Answer: (B) To ensure that the behavior of code is intuitive and predictable

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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