Q. Which method returns all the keys from a hash in Ruby?

  • (A) keys
  • (B) values
  • (C) items
  • (D) elements
πŸ’¬ Discuss
βœ… Correct Answer: (A) keys
Explanation: The keys method returns all keys of a hash.
Explanation by: Rati Dubey
The keys method returns all keys of a hash.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
103
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
94%
Success Rate