NEW
Font size
WorksheetsDSA & Code Snippets
Total questions: 15
Worksheet time: 12mins
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
Which of the following represents the Postorder Traversal of a Binary Tree?
Left -> Right -> Root
Left -> Root -> Right
Right -> Left -> Root
Right -> Root -> Left
Which of the following is a linear data structure?
Array
AVL Trees
Binary Trees
Graphs
When a pop() operation is called on an empty queue, what is the condition called?
Overflow
Underflow
Syntax Error
Garbage Value
Which of the following is a Divide and Conquer algorithm?
Bubble Sort
Selection Sort
Heap Sort
Merge Sort
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
Which data structure is mainly used for implementing the recursive algorithm?
Queue
Stack
Array
List
What will be the output of the following code snippet?
4
6
5
3
Find the output of the following program
-127
127
2
129
Find the output for the given code
-126
Run Time Error
126
Garbage Value
Find the output
hello world
Run time error
world world
Compilation error
Find the output
Run Time Error
25 43632845
25 36
Compilation Error
Find the Output
1 2 3
3
3 2 1
1
Find the output
Compilation Error
4
2
1
What will be the output of the code snippet?
Compilation Error
Mango
ngo
ango
