Week 9 Test Review Flashcards
1
Q
Lists and tables of values can be stored in ______.
A
arrays
2
Q
An array is a group of _______ (called elements or components) containing values that all have the same ______.
A
variables, type
3
Q
The _______ allows programmers to iterate through the elements in an array without using a counter.
A
enhanced for statement
4
Q
The number used to refer to a particular array element is called the element’s _____.
A
index
5
Q
An array that uses two indices is referred to as a(n) _______ array.
A
two dimensional
6
Q
Command-line arguments are stored in _____.
A
an array of Strings args
7
Q
Given the command java MyClass test, the first command-line argument is _____.
A
test