Data Types, Data Structures and Algorithms Flashcards

(6 cards)

1
Q

What is an array?

A

An array is an ordered, finite set of elements of a single type.

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

What is a record?

A

A row in a file made up of fields.

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

What are 2 key features of records?

A

It is mutable and can store multiple data types.

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

What is 2 key feature of list?

A

It is mutable, store multiple data type.

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

3 difference of list and array?

A

1.In list data is not stored next to each other in memory.
2.In list you can add data and change data while can only change data in array.
3.In list can have multiple data type but array only have 1,

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

What is 3 feature of tuple?

A

1.Immutable
2.Static data type
3.Dont need to have same data type.

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