Arrays Flashcards

1
Q

What are Arrays?

A

An array is a data structure that consists of a fixed number of the same data types.

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

Is the size of an Array fixed or free?

A

Fixed. It cannot increase to accommodate more elements.

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

Arrays are objects.

TRUE or FALSE

A

TRUE

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

Simple Arrays are _______________.

A

One-Dimensional

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

The minimum number of elements for an Array is ____.

A

0 (Zero)

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

What are individual Array Elements called?

A

Index.

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

What is the Lower bound and Upper bound of any Array?

A

Lower bound (min): 0.

Upper bound (max): 1 less than the number of elements.

Ex. int a[10]: Lower = a[0] / Upper = a[9]
THERE IS NO a[10]!

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