Quiz
If the brain were an array, you could test its length by answering each of the following questions about arrays.
Questions
1: |
What types of information are arrays best suited for?
- Lists
- Pairs of related information
- Trivia
|
2: |
What variable can be used to check the upper boundary of an array?
|
3: |
Who is the famous Aztec priest-ruler?
- Quisp
- Quetzalcoatl
- Quichelorraine
|
Answers
A1: |
a. Lists that contain nothing but the same type of information—strings, numbers, and so on—are well-suited for storage in arrays.
|
A2: |
b. The length variable contains a count of the number of elements in an array.
|
A3: |
b. It's also the name of a god of learning and civilization who is depicted as an approaching storm whose winds kick up dust before the rain comes.
|
|