πŸ“Š Ruby
Q. What does the `each_key` method do when called on a hash in Ruby?
  • (A) Iterates over each key-value pair in the hash
  • (B) Iterates over each key in the hash
  • (C) Iterates over each value in the hash
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Iterates over each key in the hash

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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