
Data Structures (STACKs)
Quiz
•
Other
•
University
•
Practice Problem
•
Easy
Nathaniel Mensah
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which principle does a stack follow?
First-In, First-Out (FIFO)
Last-In, First-Out (LIFO)
Random Access
Middle-In, Middle-Out
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where do insertion and removal of elements take place in a stack?
Bottom
Middle
Top
Random location
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term for adding an element to a stack?
Pop
Push
Top
Empty
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term for removing an element from a stack?
Push
Pop
Top
IsEmpty
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation checks if the stack is empty?
Push
Pop
Top
IsEmpty
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the size() operation on a stack return?
The top element
True if the stack is empty, false otherwise
The number of elements in the stack.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity for push and pop operations on a stack?
O(n)
O(log n)
O(1)
O(n^2)
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
20 questions
CB CHAPTER 8 Pay for Performance Plans
Quiz
•
University
12 questions
Theories of Corporate Governance
Quiz
•
University
10 questions
Table Appointments "LINEN"
Quiz
•
12th Grade - University
20 questions
Do you live in the PAST, PRESENT or FUTURE?
Quiz
•
University
10 questions
ROMANTYZM - wprowadzenie do epoki
Quiz
•
10th Grade - Professi...
11 questions
Ile wiesz o BTS? Podstawy
Quiz
•
1st Grade - Professio...
10 questions
Informative Speaking
Quiz
•
University
15 questions
MIS Chapter 6
Quiz
•
University
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
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
