Vidyalelo
Ruby Programming · Q33

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 33

Q33

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
Answer
C.
Iterates over each value in the hash
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board