

Stack and Queue
Presentation
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Dineshkumar Prabhuraj
Used 2+ times
FREE Resource
20 Slides • 22 Questions
1
2
3
Multiple Choice
Which operation removes the top element from a stack?
push
pop
peek
insert
4
5
Multiple Choice
Which of the following operations does NOT remove an element from the stack?
push()
pop()
peek()
isEmpty()
6
7

Array Stack Visualization
You can open this webpage in a new tab.
8

Linked List Stack Visualization
You can open this webpage in a new tab.
9
Open Ended
Explain how the Last-In-First-Out (LIFO) principle is demonstrated in the stack visualisation example.
10
11
Multiple Choice
Consider the following operation performed on a stack of size 5.
Push(1);
Pop();
Push(2);
Push(3);
Pop();
Push(4);
Pop();
Pop();
Push(5);
4
3
2
1
12
Multiple Select
Select all the functions from the Python stack implementation that check the status of the stack rather than modify it.
is_empty()
push(item)
pop()
peek()
13
14
Multiple Choice
Which of the following is NOT a typical application of stacks?
Browser history
Interrupt handling
Recursion
Sorting a list
15
Fill in the Blanks
16
17
Open Ended
Describe the sequence of stack contents after the following operations: push(2), push(3), push(4), pop(), push(5), pop().
18
19
20
Multiple Choice
Which principle does a queue data structure follow?
FIFO (First In First Out)
LIFO (Last In First Out)
Random Access
Priority Based
21
22
Open Ended
Explain how the enqueue and dequeue operations work in a queue, using the diagrams provided.
23
24
25
Multiple Choice
Which of the following functions in the given Python code checks if the queue is empty?
enqueue
dequeue
is_empty
queue_str
26
27
Multiple Choice
In a Queue, what operation is performed to add a new element?
Enqueue
Dequeue
Push
Pop
28
Multiple Choice
Identify two real-world scenarios where queues are used, as mentioned in the slide.
Printer queues and keyboard queue
Stack memory and recursion
Sorting algorithms and searching
File systems and databases
29
Multiple Choice
Which of the following operations is not typically associated with a queue?
Enqueue
Dequeue
Peek
Pop
30
Multiple Choice
What is the index of the first element in a list/array?
1
-1
2
0
31
32
Fill in the Blanks
33
34
35
Multiple Choice
Which of the following statements is true about arrays and stacks/queues?
Arrays are dynamic data structures and can change size.
Stacks and queues are static data structures and cannot change size.
Arrays are static data structures and cannot change size, while stacks and queues are dynamic data structures and can change size.
Stacks and queues cannot be implemented using arrays.
36
37
38
Multiple Select
Which of the following are common applications of queues?
Function calls in compilers
Interrupt handling in real-time systems
Simulating recursion in programs
Serving requests of a shared resource like a printer
39
Open Ended
How would you describe the process of adding and removing elements in a stack, and how does this relate to the concept of 'top' in the stack data structure?
40
Multiple Choice
In a stack, if a user tries to remove an element from empty stack it is called _________
Underflow
Empty collection
Overflow
Garbage Collection
41
Multiple Choice
What is the main difference between the LIFO and FIFO principles when working with stacks and queues?
LIFO removes the oldest element first, FIFO removes the newest element first
LIFO removes the newest element first, FIFO removes the oldest element first
LIFO and FIFO both remove elements randomly
LIFO and FIFO are only used in sorting algorithms
42
Open Ended
Why is understanding the principles of stacks and queues important in computer science and programming?
Show answer
Auto Play
Slide 1 / 42
SLIDE
Similar Resources on Wayground
35 questions
D1:Unit 1-Day 1 Westward Expansion
Presentation
•
10th Grade
35 questions
A lev: музыка - массовая культура
Presentation
•
11th Grade
35 questions
1.2 Rates
Presentation
•
KG
39 questions
Sarcomere
Presentation
•
11th - 12th Grade
35 questions
Semester 1 Review Day 2
Presentation
•
10th Grade
41 questions
Keragaman Budaya Indonesia dalam Interaksi Global
Presentation
•
11th Grade
37 questions
Chemical analysis
Presentation
•
12th Grade
38 questions
Friction and Acceleration
Presentation
•
10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade