Question:

Which of the following is the correct syntax for a hash?

1)   hash_name = {
      key1 = value1,
      key2 = value2
     }

2)   hash_name = {
      key1 => value1
      key2 => value2
      end
     }

3)   hash_name = {
      key1 => value1,
      key2 => value2
     }

4)   hash_name = {
      key1 = value1,
      key2 = value2
      end
     }

 

Answers:


Keywords:

© 2017 QuizBucket.org