Perl Variables  «Prev  Next»

Hash Functions in Perl - Quiz

Each question is worth one point. Select the best answer for each question.
 
1. What is the difference between a hash and an ordinary array?
Please select the best answer.
  A. Ordinary arrays cannot contain string values, while hashes can contain any type of scalar values
  B. Ordinary arrays use a numeric index, while hashes use a string index
  C. Ordinary arrays use a string index, while hashes use a numeric index

2. In what order is a hash stored?
Please select the best answer.
  A. The order defined by the number of values in the hash
  B. The order defined by the internal hashing algorithm
  C. The order in which the values were stored in the hash

Your score is 0.0