
Data Structure (Stack) quiz - 4
Authored by Ashish Kumar
Information Technology (IT)
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The result evaluating the postfix expression
10 5 + 60 6 / * 8 –
is
284
213
142
71
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following operations performed on a stack of size 5 : Push (a); Pop() ; Push(b); Push(c); Pop(); Push(d); Pop();Pop(); Push (e) Which of the following statements is correct?
Underflow occurs
Stack operations are performed smoothly
Overflow occurs
None of these
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Postfix of
(A + B^ D) / (E – F) + G
is
ABD + ^EF – / G+
ABD + ^EF / – G+
ABD^ + EF – / G+
ABD^ + EF / – G+
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the main principle behind the stack data structure?
FIFO (First In, First Out)
LIFO (Last In, First Out)
Priority Queue
None of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity for the push and pop operations in a stack
O(n)
O(n^2)
O(1)
O(logn)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In which real-world scenario can a stack be applied?
Undo functionality in text editors
Browser history navigation
Both of these
None of these
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What would happen if we use a stack with a fixed size and try to perform a push operation when the stack is full?
The new element is ignored
Underflow error
The stack automatically expands
Overflow error
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
Kekurangan dan Keunggulan Struktur Data
Quiz
•
11th Grade - University
15 questions
CyberQuest
Quiz
•
University
10 questions
Bitcoin Blockchain Quiz
Quiz
•
University
15 questions
Algorithms: Divide and Conquer vs Greedy
Quiz
•
University
15 questions
Quiz Informatika Genap KLs 7
Quiz
•
7th Grade - University
15 questions
CMDP2063 Unix and C Programming (Revision)
Quiz
•
University
10 questions
Round3Quiz
Quiz
•
University
6 questions
Git - Ramas
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 Information Technology (IT)
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