Q18
Which method in Ruby is used to check if a key exists in a hash?
A.
key?
B.
include?
C.
exists?
D.
has_key?
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board