πŸ“Š Ruby
Q. Which of the following methods is used to check if a key exists in a hash in Ruby?
  • (A) has_key?(key)
  • (B) include_key?(key)
  • (C) key_exists?(key)
  • (D) contains_key?(key)
πŸ’¬ Discuss
βœ… Correct Answer: (A) has_key?(key)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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