Q34
Which of the following methods is used to check if a key exists in a hash in Ruby?
A.
has_key?(key)
AnswerB.
include_key?(key)
C.
key_exists?(key)
D.
contains_key?(key)
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board