DSA & Code Snippets

Quiz
•
Education
•
University
•
Medium

Shanmuga Priya M
Used 32+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of the following is an application of Stack Data Structure?
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 Wayground
20 questions
UT- 2 (Quiz on verilog)

Quiz
•
University
15 questions
Combinational Logic circuits

Quiz
•
University
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
20 questions
Python Assessment-2

Quiz
•
University
20 questions
AI (Artificial Intelligence)

Quiz
•
University
10 questions
Chapter 1-4 MICROECONOMICS

Quiz
•
University
10 questions
OSG-I/O_P1

Quiz
•
University
10 questions
2nd Law of Thermodynamics

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Education
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University