Arrays, Lists and Tuples (add to correct deck) Flashcards
1
Q
What is a data structure?
A
A data structure is a logical model of a particular organisation of data
2
Q
What is an array?
A
An array is an ordered collection of elements of a similar data type
3
Q
What are the two types of arrays?
A
One-dimensional array and two-dimensional array
4
Q
What is a list?
A
A list is an ordered, sequential collection of zero or more elements. A list is a heterogeneous collection of elements, which means a list may consist of elements of different data types
5
Q
What is a tuple?
A
Tuples are similar to lists, but tuples cannot be changed. It is like a constant list