Data Structure UNIT TEST 4 and Sorting
Sign in to Google to save your progress. Learn more
ROLL NUMBER *
NAME *
Q1 Which of the following is an advantage of adjacency list representation over adjacency matrix representation of a graph?
1 point
Clear selection
Q2 Which of the following statements is/are TRUE for an undirected graph? P: Number of odd degree vertices is even Q: Sum of degrees of all vertices is even
1 point
Clear selection
Q 3 Given an undirected graph G with V vertices and E edges, the sum of the degrees of all vertices is
1 point
Clear selection
Q4 What is the maximum number of edges in an acyclic undirected graph with n vertices?
1 point
Clear selection
Q5 For the undirected, weighted graph given below, which of the following sequences of edges represents a correct execution of Prim's algorithm to construct a Minimum Span­ning Tree?
1 point
Captionless Image
Clear selection
Q6 Consider a directed graph with n vertices and m edges such that all edges have same edge weights. Find the complexity of the best known algorithm to compute the minimum spanning tree of the graph?
1 point
Clear selection
Q7 Which of the following data structure is useful in traversing a given graph by breadth first search?
1 point
Clear selection
Q 8 The number of edges in a simple, n-vertex, complete graph is
1 point
Clear selection
Q 9 Graphs are represented using ............
1 point
Clear selection
Q 10 The spanning tree of connected graph with 10 vertices contains ..............
1 point
Clear selection
Q 11 Which of the following algorithms solves the all-pair shortest path problem?
1 point
Clear selection
Q 12 What is the maximum number of possible non zero values in an adjacency matrix of a simple graph with n vertices?
1 point
Clear selection
Q13 How many undirected graphs (not necessarily connected) can be constructed out of a given set V= {V 1, V 2,…V n} of n vertices ?
1 point
Clear selection
Q 14 A graph is a tree if and only if graph is
1 point
Clear selection
Q 15 Which of the following is a linear data structure?
1 point
Clear selection
Q 16 Which of the following is not a stable sorting algorithm in its typical implementation.
1 point
Clear selection
Q 17 Suppose we are sorting an array of eight integers using quicksort, and we have just finished the first partitioning with the array looking like this: 2  5  1  7  9  12  11  10 Which statement is correct?
1 point
Clear selection
Q18 Which of the following is true about merge sort?
1 point
Clear selection
Q 19 What is the largest integer m such that every simple connected graph with n vertices and n edges contains at least m different spanning trees?
1 point
Clear selection
Q 20 Which of the following is not an in-place sorting algorithm?
1 point
Clear selection
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.