Examveda

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

A. Array of all keys

B. Array of all values

C. Array of key-value pairs

D. Number of keys in the hash

Answer: Option A


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby