πŸ“Š Ruby
Q. What is the correct syntax for creating a hash in Ruby?
  • (A) {"key1": "value1", "key2": "value2"}
  • (B) hash = {}
  • (C) hash.add("key", "value")
  • (D) Hash.new("key", "value")
πŸ’¬ Discuss
βœ… Correct Answer: (A) {"key1": "value1", "key2": "value2"}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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