
Data Structure (Stack) quiz - 4

Quiz
•
Information Technology (IT)
•
University
•
Hard
Ashish Kumar
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
5 questions
Questionário 2.2

Quiz
•
University
10 questions
Untitled Quiz

Quiz
•
University
10 questions
Quiz Array dan Metode JavaScript

Quiz
•
University
10 questions
CODE DEBUGGING EVENT

Quiz
•
University
10 questions
QUIZ 6 NLP

Quiz
•
University
10 questions
CPU INSTRUCTION

Quiz
•
University
11 questions
Arduino Basics: Inputs and Outputs Quiz

Quiz
•
12th Grade - University
15 questions
QUIZ BK KELAS X

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University