Unit 3 - Arrays Vocabulary Flashcards

1
Q

Data Structure

A

Data structures are a collection of related data items. For example: Arrays, Stack (LIFO), Queue (FIFO)

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

Array

A

A numbered list that stores data of the same type

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

Dynamic Resizing

A

Dynamic resizing is the action of resizing an array (with the help of ArrayList)

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

Array Element

A

An array element is a variable inside of an array.

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

Array Index

A

The location or position of an element inside of the array.

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

length (Instance Variable - Field)

A

A final variable that stores the number of elements in an array.

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

Array Initializer

A

A line of code that sets the number of elements in an array. This is formatted using int[ ] array = {element1, element2, etc}

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

Bounds Checking (also, “off-by-one” error)

A

The JVM checks the array elements to ensure that their index (position) is greater than or equalled to 0 and less than the array length.

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

Enhanced For Statement (also, “traverse”)

A

A for loop that iterates through an array. This is formatted using data type: array name

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

Pass-By-Value

A

A pass-by-value takes a copy of the argument value (not the variable itself to ensure that the original variable remains unchanged) and passes it onto the called method (Send values as arguments).

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

Pass-By-Reference

A

A reference of the argument value is passed to the method, allowing for the method to access the argument parameter and modify its value. (used to modify the original variable of a value. Sending the memory location (address) in an array.)

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

Two-Dimensional Array

A

An array inside of an array is mainly used for making a table of values that are arranged in rows and columns

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

Command-Line Arguments

A

Pass arguments from the configuration tab into the public static void main (String [] args) before it runs.

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

Arrays Class

A

The array class is from the Java utility package which allows for static array manipulation (sorting searching, filling, comparing or copying).

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

ArrayList

A

A class that helps programmers to resize their arrays automatically. ArrayLists automatically grow and shrink when elements are added or taken out.

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