Self-Review Exercises

  1. E.1 Fill in the blank(s) in each of the following statements:

    1. Lists and tables of values can be stored in           .

    2. An array is a group of            (called elements or components) containing values that all have the same           _.

    3. The            allows you to iterate through the elements in an array without using a counter.

    4. The number used to refer to a particular array element is called the element’s           .

    5. An array that uses two indices is referred to as a(n)           array.

    6. Use the enhanced for statement            to walk through double array numbers.

    7. Command-line arguments are stored in           .

  2. E.2 Determine whether each of the following is true or false. If false, explain why.

    1. An array can ...

Get Android How to Program, 3/e 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.