Deck 17: Stacks and Queues
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/34
Play
Full screen (f)
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:
- addQueue:
- 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:
- Back (rear):
- 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:
- Customer:
- 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:
- deleteQueue:
- 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:
- destroyStack:
- 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:
- Front:
- 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:
- Infix notation:
- 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:
- Last In First Out (LIFO) data structure:
- 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:
- Overflow:
- 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:
- pop:
- 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:
- Prefix (Polish notation):
- 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:
- push:
- 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:
- Queue:
- 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:
- queueFront:
- 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:
- queueRear:
- 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:
- Queuing systems:
- 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:
- Server:
- 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:
- Simulation:
- 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:
- Stack:
- 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:
- Postfix (Reverse Polish) notation:
- 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:
- Time-driven simulation:
- 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:
- Top:
- 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:
- Transaction time:
- 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:
- Underflow:
- Underflow:
Unlock Deck
Unlock for access to all 34 flashcards in this deck.
Unlock Deck
k this deck