Which principle does a stack follow?

Data Structures (STACKs)

Quiz
•
Other
•
University
•
Easy
Nathaniel Mensah
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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)
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Understanding Data Structures

Quiz
•
University
10 questions
Quiz __ Day --7

Quiz
•
University
10 questions
UH Peralatan Pemboran Sistem angkat

Quiz
•
11th Grade - University
20 questions
Quiz 3

Quiz
•
University
10 questions
Javascript тілі

Quiz
•
University
12 questions
PoP

Quiz
•
6th Grade - Professio...
10 questions
Dart Sets Quiz

Quiz
•
University
10 questions
Structuri de date în C++

Quiz
•
7th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade