Array Flashcards

(10 cards)

1
Q

What is an array?

A

A variable that stores a list of data items each being directly accessible.

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

What is each item in an array called?

A

An element

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

What is each location of an element called within an array?

A

An index

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

What number does an index start with inside an element?

A

0

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

How would you assign element 0 with the value 250?

A

variableName[0] = 250

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

What symbol signifies brackets?

A

” [ “ and “ ] “

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

What symbol signifies braces?

A

” { “ and “ } “

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

What is a scaler?

A

A single item variable

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

Can an array’s index be a float number?
For example: 4.0

A

No.

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

What is swapping?

A

When you change the value of a variable (x) with the value of another (y).

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