Data Structures Flashcards

1
Q

Record

A

A data structure that consists of a fixed number of variables (fields).
Every field has an identifier and a data type. Each field in a record can have a different data type.

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

Array

A

A data structure that holds a number of data items (or elements) of the same data type.
Values are mutable (can be changed while the program is running).
Static - fixed length
Dynamic - not a fixed size

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

List

A

An abstract data type that describes a linear collection of data in some order, in that each element occupies a specific position in the list.
Elements do not need to be unique (unlike a set).
Dynamic

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

Tuple

A

An ordered sequence of elements that is immutable - values cannot be changed while program is running.
Accessed by index same as array.

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