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

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

What is an array?

A

An array is an ordered collection of elements of a similar data type

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

What are the two types of arrays?

A

One-dimensional array and two-dimensional array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

What is a tuple?

A

Tuples are similar to lists, but tuples cannot be changed. It is like a constant list

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