1.4.2 arrays, list, etc. Flashcards

1
Q

What is an array?

A

a strucure the stores data using indices.

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

What are the characteristics of an array?

A
  • hold specific number of data, number of data is determined when the array is created.
  • data stored must be from the same data type.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a list?

A

Structure that store data using a single identifier and index.

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

characteristics of a list?

A
  • doesn’t have a fixed size.
  • can store data from different data types.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a tuple?

A
  • a structure similar to lists, the only difference is that data in tuples cannot be modified.
  • this is useful for data that must not be changed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly