Lesson 2.1: Arrays Flashcards

1
Q

_____ are data structures consisting of related data items of the same type.

A

Arrays

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

The values contained in the array are called _____.

A

elements/components

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

We access the individual elements of the array through their position number, referred to as the _____.

A

Index or subscript

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

The components of the array can both be primitive or reference types but arrays are objects and they are primitive types. True or False?

A

False

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

Since arrays are objects, they are declared using the new keyword.

A

Declaration

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

Array with one subscript.

A

single-dimensional arrays

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

Array with more than one subscript.

A

multi-dimensional arrays

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

an array with m rows and n columns is called an _____.

A

m-by-n array.

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

a[m][n] is equal to?

A

a[row][column]

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

The value of an object that references nothing.

A

null

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

How do you access array elements.

A

Brackets and Indices.

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

An array with rows of different length.

A

Ragged array

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