M

Mr. Dubey • 95.57K Points
Coach

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)
  • Correct Answer - Option(A)
  • Views: 63
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics