Vidyalelo
Ruby Programming · Q12

Arrays, Hashes and Strings in Ruby

Programming · Ruby Programming · question 12

Q12

What does the keys method return when called on a hash in Ruby?

A.
Array of all keys
Answer
B.
Array of all values
C.
Array of key-value pairs
D.
Number of keys in the hash

Answer: Option A

Solution

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