Chapter 2 Flashcards

1
Q

are linear data structures that follow a particular order to add or remove entities.

A

Stacksandqueues

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

is an Abstract Data Type (ADT)

A

stack

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

Pushing (storing) an element on the stack.

A

Push()

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

Removing (accessing) an element from the stack. When data is PUSHed onto stack.

A

pop()

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

get the top data element of the stack, without removing it.

A

Peek()

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

check if stack is full.

A

isFull()

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

check if stack is empty.

A

isEmpty()

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

The process of putting a new data element onto stack is known as a

A

Push Operation

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

Accessing the content while removing it from the stack, is known as a

A

Pop Operation

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

A queue is a lot like a stack.

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

are open from both ends: one end for inserting data, and the other end for removing data

A

Queues

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

is only open from one end.

A

stack

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

add (store) an item to the queue.

A

enqueue()

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

remove (access) an item from the queue.

A

dequeue()

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

provides top value of the stack without actually removing it.

A

top

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