Deck 17: Stacks and Queues

Full screen (f)
exit full mode
Question
What is a LIFO data structure?
Use Space or
up arrow
down arrow
to flip the card.
Question
The addition and deletion of elements in a stack only occur at one end, called the ____________________ of the stack.
Question
A stack element can be accessed either at the top or the bottom of the stack.
Question
The ____________________ operation of a stack removes and stores the top element of the stack.
Question
Which stack function is a private member of the class?
Question
What is the position of the top element of a stack in an array-based implementation?
Question
Removing an element from an empty stack results in ____________________.
Question
In a linked implementation of a stack, the stack is only full if computer memory runs out.
Question
A(n) ____________________ is a system in which a queue of objects is waiting to be served by various servers.
Question
A(n) ____________________ array can be used in an array implementation of a queue to avoid an overflow error at the rear of the queue when the queue is not full.
Question
What does these terms refer to:

- \gg addQueue:
Question
What does these terms refer to:

- \gg Back (rear):
Question
What does these terms refer to:

- \gg Customer:
Question
What does these terms refer to:

- \gg deleteQueue:
Question
What does these terms refer to:

- \gg destroyStack:
Question
What does these terms refer to:

- \gg Front:
Question
What does these terms refer to:

- \gg Infix notation:
Question
What does these terms refer to:

- \gg Last In First Out (LIFO) data structure:
Question
What does these terms refer to:

- \gg Overflow:
Question
What does these terms refer to:

- \gg pop:
Question
What does these terms refer to:

- \gg Prefix (Polish notation):
Question
What does these terms refer to:

- \gg push:
Question
What does these terms refer to:

- \gg Queue:
Question
What does these terms refer to:

- \gg queueFront:
Question
What does these terms refer to:

- \gg queueRear:
Question
What does these terms refer to:

- \gg Queuing systems:
Question
What does these terms refer to:

- \gg Server:
Question
What does these terms refer to:

- \gg Simulation:
Question
What does these terms refer to:

- \gg Stack:
Question
What does these terms refer to:

- \gg Postfix (Reverse Polish) notation:
Question
What does these terms refer to:

- \gg Time-driven simulation:
Question
What does these terms refer to:

- \gg Top:
Question
What does these terms refer to:

- \gg Transaction time:
Question
What does these terms refer to:

- \gg Underflow:
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/34
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 17: Stacks and Queues
1
What is a LIFO data structure?
A Last In First Out (LIFO) data structure is a data structure in which the item that is added last will be removed first.
2
The addition and deletion of elements in a stack only occur at one end, called the ____________________ of the stack.
top
3
A stack element can be accessed either at the top or the bottom of the stack.
False
4
The ____________________ operation of a stack removes and stores the top element of the stack.
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
5
Which stack function is a private member of the class?
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
6
What is the position of the top element of a stack in an array-based implementation?
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
7
Removing an element from an empty stack results in ____________________.
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
8
In a linked implementation of a stack, the stack is only full if computer memory runs out.
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
9
A(n) ____________________ is a system in which a queue of objects is waiting to be served by various servers.
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
10
A(n) ____________________ array can be used in an array implementation of a queue to avoid an overflow error at the rear of the queue when the queue is not full.
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
11
What does these terms refer to:

- \gg addQueue:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
12
What does these terms refer to:

- \gg Back (rear):
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
13
What does these terms refer to:

- \gg Customer:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
14
What does these terms refer to:

- \gg deleteQueue:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
15
What does these terms refer to:

- \gg destroyStack:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
16
What does these terms refer to:

- \gg Front:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:

- \gg Infix notation:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:

- \gg Last In First Out (LIFO) data structure:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
19
What does these terms refer to:

- \gg Overflow:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
20
What does these terms refer to:

- \gg pop:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
21
What does these terms refer to:

- \gg Prefix (Polish notation):
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
22
What does these terms refer to:

- \gg push:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
23
What does these terms refer to:

- \gg Queue:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
24
What does these terms refer to:

- \gg queueFront:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
25
What does these terms refer to:

- \gg queueRear:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
26
What does these terms refer to:

- \gg Queuing systems:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
27
What does these terms refer to:

- \gg Server:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
28
What does these terms refer to:

- \gg Simulation:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
29
What does these terms refer to:

- \gg Stack:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
30
What does these terms refer to:

- \gg Postfix (Reverse Polish) notation:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
31
What does these terms refer to:

- \gg Time-driven simulation:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
32
What does these terms refer to:

- \gg Top:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
33
What does these terms refer to:

- \gg Transaction time:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
34
What does these terms refer to:

- \gg Underflow:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 34 flashcards in this deck.