
Week 7 - Activity #1 (CC104)
Authored by Jerome Escultura
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the main principle that a stack data structure follows?
First In First Out (FIFO)
Last In First Out (LIFO)
Random Access
First Come First Served
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT an operation typically associated with a stack?
Push
Pop
Peek
Insert At Bottom
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the context of stacks, what does the push() operation do?
Removes the top element
Adds an element to the bottom
Adds an element to the top
Displays the top element without removing it
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If a stack follows the LIFO principle, which element will be popped from the following stack [10, 20, 30, 40]?
10
20
30
40
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In which real-life scenario can a stack be used?
Queue at a bank
Browser's back button
Train scheduling system
Internet routing table
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the result of calling peek() on an empty stack?
Returns null
Throws an exception
Returns the last element
Does nothing
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity of the push() operation in a stack implemented with an array?
O(1)
O(n)
O(log n)
O(n²)
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
Le droit de propriété
Quiz
•
University - Professi...
15 questions
Etapas de desarrollo de un grupo
Quiz
•
University
20 questions
NMMS MAT 7காலம் சார்ந்த கணக்குகள்
Quiz
•
University
20 questions
Repaso general - Técnicas Auditoría
Quiz
•
University
15 questions
PLANE TABLE SURVEYING
Quiz
•
University
15 questions
Diagnóstico
Quiz
•
University
20 questions
Tipos de muestreo
Quiz
•
University
20 questions
MIS Chapter 4
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Other
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University