Question: Answer the following questions: 1. Keys in a Ruby Hash can be__. A.String type only B. Integer type only C. String and integer type only
Answer the following questions:
1. Keys in a Ruby Hash can be__.
| A.String type only |
| B. | Integer type only |
| C. | String and integer type only |
| D. Any Ruby object type 2. Given the following hash: names = Hash["a" => "Marc", "b" => "Cheyenne", "c" => "Alexander", "d" => Mia] Which one of the following returns "true"?
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
