Week 9 Test Review Flashcards

1
Q

Lists and tables of values can be stored in ______.

A

arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

variables, type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The _______ allows programmers to iterate through the elements in an array without using a counter.

A

enhanced for statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

two dimensional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Command-line arguments are stored in _____.

A

an array of Strings args

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Given the command java MyClass test, the first command-line argument is _____.

A

test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly