
Exploring Stacks in Data Structures
Authored by Tarak Nandy
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What are the basic operations of a stack?
Push, Pop, Peek, IsEmpty
Insert, Delete, Top, IsFull
Add, Remove, Clear, Size
Enqueue, Dequeue, Front, IsNull
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Explain the Last In First Out (LIFO) principle.
Items are removed in the order they were added.
The last item added is the last one to be removed.
The first item added is the first one to be removed.
The last item added is the first one to be removed.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity of push and pop operations in a stack?
O(n)
O(log n)
O(1)
O(n^2)
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
List three applications of stacks in computer science.
1. Network packet routing
2. Network message buffer
3. Print job processing
1. Memory allocation management
2. File management
3. CPU management
1. Data sorting algorithms
2. task scheduling
3. Disc Scedule
1. Function call management
2. Expression evaluation
3. Backtracking algorithms
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How can stacks be used in expression evaluation?
Stacks can only be used for sorting data.
Stacks can be used to convert and evaluate expressions in postfix notation.
Stacks can evaluate expressions in infix notation.
Stacks are not applicable in expression evaluation.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Describe how a stack can be implemented using an array.
A stack can be implemented using a linked list with no index tracking.
A stack can only be implemented using a queue.
A stack requires a fixed size and cannot grow dynamically.
A stack can be implemented using an array by using an index to track the top element and performing push, pop, and peek operations.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What are the advantages of using a linked list to implement a stack?
Fixed size allocation
Slower access times
Increased memory fragmentation
Dynamic sizing
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
10 questions
Intro to Windows Server 2012
Quiz
•
12th Grade
10 questions
Arduino
Quiz
•
7th - 12th Grade
10 questions
Sistema Operativo
Quiz
•
1st - 12th Grade
10 questions
AIJ Test 1 Firewall Jaringan
Quiz
•
9th - 12th Grade
10 questions
Excel
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade