Term pt.2(Arrays) Flashcards

1
Q

Arrays

A

An array is a single variable that is used to store different elements. You start an array declaration with an opening and closing square bracket

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

Array Indexes

A

Array indexes are used to access the data inside arrays. Arrays use zero-based indexing.

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

Multi-Dimensional Array

A

Is an array or arrays or a multi-leveled array.

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

Push()

A

An array function. The push() function is a way to append or push data to the end of the array.

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

Pop()

A

Another array function. The pop() function is used to remove or pop a value off the end of an array and returns that element or data.

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

Shift()

A

Another array function. The shift() function removes or shifts the first element of the array, the opposite of the pop() function.

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

Unshift()

A

Another array function. Unshift() adds data to the beginning of an array, the opposite of push().

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

Zero-based Indexing

A

Zero-based indexing is the indexing that array uses to count data. Which means you count from 0 instead of 1.

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