Which one of the following is an application of Stack Data Structure?
DSA & Code Snippets

Quiz
•
Education
•
University
•
Medium

Shanmuga Priya M
Used 26+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Managing function calls
The stock span problem
Arithmetic expression evaluation
All of the above
Answer explanation
Arithmatic expression evaluation - Prefix, Infix, Postfix
Stock span problem can be solved using stack
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following represents the Postorder Traversal of a Binary Tree?
Left -> Right -> Root
Left -> Root -> Right
Right -> Left -> Root
Right -> Root -> Left
Answer explanation
Preorder : 1 2 4 5 8 3 6 9 7
Inorder : 4 2 8 5 1 6 9 3 7
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a linear data structure?
Array
AVL Trees
Binary Trees
Graphs
Answer explanation
Refer the Image for Classification of Data Structures
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a pop() operation is called on an empty queue, what is the condition called?
Overflow
Underflow
Syntax Error
Garbage Value
Answer explanation
Underflow -> popping out an element from empty stack
Overflow -> pushing an element into full stack
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a Divide and Conquer algorithm?
Bubble Sort
Selection Sort
Heap Sort
Merge Sort
Answer explanation
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following algorithms are used to find the shortest path from a source node to all other nodes in a weighted graph?
BFS - Best First Search
Djikstra’s Algorithm
Prims Algorithm
Kruskal’s Algorithm
Answer explanation
Dijkstra’s algorithm finds the shortest path, but Prim’s algorithm finds the MST
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data structure is mainly used for implementing the recursive algorithm?
Queue
Stack
Array
List
Answer explanation
Stack is mainly used in recursion for implementing recursive function calls
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
11 questions
PSAP

Quiz
•
University
11 questions
OOAD Quiz 4

Quiz
•
University
10 questions
(Backup) DSA and Code Snippets

Quiz
•
University
20 questions
Introduction To Machine Learning

Quiz
•
University
15 questions
Round 2

Quiz
•
University
20 questions
Introduction to Machine Learning

Quiz
•
University - Professi...
20 questions
Python Assignment 1

Quiz
•
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