2.2.3(e) 1D + 2D arrays Flashcards

1
Q

ADIOS

A

Arrays are a
Data structure which uses an
Index to identify each element, which has just
One indentifier, of a
Single data type

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

identifiers =

A

= numbers = [1,4,5,6]

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

1st index =
5th index =

A

1st index = 0
5th index = 6

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

len finds out …

A

… how many elements are in an array

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

in is used to see …

A

… if what you’re looking for is in the array

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

columns =

A

for j in range

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

rows =

A

= for i in range

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

2D arrays are …

A

… multi-dimensional/2-dimensional arrays

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