Self-Review Exercises
E.1 Fill in the blank(s) in each of the following statements:
a) Lists and tables of values can be stored in _________.
b) An array is a group of _________ (called elements or components) containing values that all have the same _________.
c) The _________ allows you to iterate through the elements in an array without using a counter.
d) The number used to refer to a particular array element is called the element’s _________.
e) An array that uses two indices is referred to as a(n) _________ array.
f) Use the enhanced for
statement _________ to walk through double
array numbers
.
g) Command-line arguments are stored in _________.
E.2 Determine whether each of the following is true or false. If false, explain why.
a) An array ...
Get Android™ How to Program, Second 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.