Flipkart GRiD DSA Quiz 2

Question 1

Time: 00:00:00
At what position should we insert a new element if we are using a linked list to simulate a stack?

At the head

At the head

At the tail

At the tail

At any random position

At any random position

At the middle

At the middle

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 2

Time: 00:00:00
The time complexity of the Depth-First Search (DFS) algorithm for traversing a graph with V vertices and E edges is:

O(V)

O(V)

O(E)

O(E)

O(V + E)

O(V + E)

O(V * E)

O(V * E)

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 3

Time: 00:00:00
Which of the following is not a Greedy Algorithm?

Dijkstra's Algorithm

Dijkstra's Algorithm

Prim's Algorithm

Prim's Algorithm

Kruskal's Algorithm

Kruskal's Algorithm

Bellman-Ford Algorithm

Bellman-Ford Algorithm

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 4

Time: 00:00:00
Which tree traversal visits the nodes in the order: Left subtree, Root, Right subtree?

Preorder traversal

Preorder traversal

Inorder traversal

Inorder traversal

Postorder traversal

Postorder traversal

Breadth-first traversal

Breadth-first traversal

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 5

Time: 00:00:00
Which of the following is an example of a Divide and Conquer algorithm?

Quicksort

Quicksort

Bubble Sort

Bubble Sort

Insertion Sort

Insertion Sort

Selection Sort

Selection Sort

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 6

Time: 00:00:00
Which data structure would be most suitable for implementing a dictionary with fast search and insertion operations?

Array

Array

Linked List

Linked List

Hash Table

Hash Table

Binary Search Tree

Binary Search Tree

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 7

Time: 00:00:00
Which data structure is commonly used to implement a cache with a limited capacity?

Array

Array

Linked List

Linked List

Hash Table

Hash Table

Stack

Stack

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 8

Time: 00:00:00
Which data structure is used to efficiently find the closest pair of points in a 2D plane?

Array

Array

Linked List

Linked List

Binary Search Tree

Binary Search Tree

Divide and Conquer

Divide and Conquer

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 9

Time: 00:00:00
Which algorithm is used to find the maximum flow in a flow network?

Depth-First Search (DFS)

Depth-First Search (DFS)

Breadth-First Search (BFS)

Breadth-First Search (BFS)

Dijkstra's Algorithm

Dijkstra's Algorithm

Ford-Fulkerson Algorithm

Ford-Fulkerson Algorithm

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 10

Time: 00:00:00
Which sorting algorithm is an in-place comparison-based algorithm with a time complexity of O(n log n) in the average and worst case?

Heap Sort

Heap Sort

QuickSort

QuickSort

Radix Sort

Radix Sort

Shell Sort

Shell Sort

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]