No student devices needed. Know more
30 questions
BFT uses which data structure?
stack
tree
queue
hash
For the given graph(G), which of the following statements is true?
G is not a connected graph
The vertex connectivity of the graph is 2
G is a complete graph
The edge connectivity of the graph is 1
The depth first traversal of a graph will result into
Graph with back edges
Array
Linked List
Tree
Most Efficient Time Complexity of Topological Sorting is? (V – number of vertices, E – number of edges)
O(V + E)
O(V)
O(E)
O(V*E)
What is the time complexity of BFT? (v– number of vertices, e – number of edges)
O(e)
O(v*e)
O(v + e)
O(v)
Topological sort is equivalent to which of the traversals in trees?
Pre-order traversal
Post-order traversal
In-order traversal
Level-order traversal
The given Graph is regular. True or False?
True
False
BFS follow
first in last out
first in first out
last in first out
What is the space complexity for DFT?
O(v)
O(v + e)
O(e)
O(v*e)
What is the number of edges present in a complete graph having n vertices?
n
(n*(n+1))/2
(n*(n-1))/2
(n*(n-1))
DFT is equivalent to which of the traversal in the Binary Trees?
Post-order traversal
In-order traversal
Pre-order traversal
Level-order traversal
Which of the following is not an application of BFT?
GPS navigation
Peer to Peer network
Finding bipartiteness of a graph
Finding shortest path between two nodes
Which of the following algorithms can be used to most efficiently determine the presence of a cycle in a given graph ?
BFT
Prim's Minimum Spanning Tree Algorithm
Kruskal's Minimum Spanning Tree Algorithm
DFT
The maximum degree of any vertex in a single graph with N vertices is
N
N-1
N+1
2N+1
A graph G is called a ________ if it is a connected acyclic graph?
Cyclic graph
Regular graph
Tree
Not a graph
For an undirected graph G with n vertices and e edges, the sum of the degrees of each vertex is
ne
2n
2e
e^n
Graph traversal is different from a tree traversal, because
Trees are not connected
Graphs may have loops
Trees have roots
None of these
Graphs are represented using ___________
Adjacency tree
Adjacency linked list
Adjacency graph
Adjacency queue
A graph having an edge from each vertex to every other vertex is called a ___________
Tightly Connected
Strongly Connected
Weakly Connected
Loosely Connected
Consider the following graph.
If we run breadth first search on this graph starting at any vertex, which one of the following is a possible order for visiting the nodes ?
MNOPQR
NQMPOR
QMNPRO
QMNPOR
Which of the following is not a topological ordering of the following graph ?
123456
132456
132645
324165
In the given graph identify the cut vertices.
A and D
B and C
E and D
C and E
What is the maximum number of possible non zero values in an adjacency matrix of a simple graph with n vertices?
(n*(n+1))/2
n*(n+1)
(n*(n-1))/2
n*(n-1)
A connected planar graph having 6 vertices, 7 edges contains _____________ regions.
15
1
3
11
On which of the following statements does the time complexity of checking if an edge exists between two particular vertices is not, depends?
Depends on the number of vertices
Depends on the number of edges
It depends on both the number of edges and vertices
Is independent of both the number of edges and vertices
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
P Only
Q Only
Both P and Q
Neither P nor Q
What is the number of vertices of degree 2 in a path graph having n vertices,here n>2.
n
n-2
0
2
This graph will have a Euler's Circuit. True or False?
True
False
Which of the following is useful in traversing a given graph by breadth first search?
List
Set
Queue
Stack
In a simple graph, the number of edges is equal to twice the sum of the degrees of the vertices. True or False?
True
False
Explore all questions with a free account