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.
2
Q
What is a record?
A
A row in a file made up of fields.
3
Q
What are 2 key features of records?
A
It is mutable and can store multiple data types.
4
Q
What is 2 key feature of list?
A
It is mutable, store multiple data type.
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,
6
Q
What is 3 feature of tuple?
A
1.Immutable
2.Static data type
3.Dont need to have same data type.