data structures Flashcards

1
Q

What is a data structure?

A

How we are able to store and retrieve data. Organizes data in some fashion

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

What is a list?

A

a list stores ordered collection of elements

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

what is a collection

A

An interface that defines common operations

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

What is a stack?

A

an ordered collection that stores object that are in a last-in first-out fashion

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

What is a queue?

A

Queue stores objects that are in a first-in, first-out fashion

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

What is a map?

A

An object that contains key/value pairs, useful for searching for a value by key.

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

What is an array?

A

The size of an array is fixed, unlike a list.

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