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?
  1. Lists

  2. Pairs of related information

  3. Trivia

2:What variable can be used to check the upper boundary of an array?
  1. top

  2. length

  3. limit

3:Who is the famous Aztec priest-ruler?
  1. Quisp

  2. Quetzalcoatl

  3. 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. ...

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.