Section 7: Data structures Flashcards
1
Q
What is an array?
A
A finite, ordered set of elements of the same data type
2
Q
What is a tuple?
A
An immutable ordered set of values, in which elements do not have to be the same data type
3
Q
What does a file consist of?
A
Records, which contain fields, which hold one item of data
4
Q
What is an abstract data type?
A
A data type created by the programmer and is a logical description of how the data is viewed and the operations that can be performed on it