Q. How do you pass arguments to a method in Ruby?

  • (A) method_name(arg1, arg2)
  • (B) method_name { arg1, arg2 }
  • (C) method_name.with(arg1, arg2)
  • (D) method_name arg1 arg2
πŸ’¬ Discuss
βœ… Correct Answer: (A) method_name(arg1, arg2)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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