Unit 4 Graph Mcqs
Unit 4 Graph Mcqs
Question
Correct
Id Option A Option B Option C Option D
Option
Which one of the following is the
1 example of non linear data structure Graph Binary Tree Queue Link List A
Let A be an adjacency matrix of a The number of paths of Shortest path of K Length of a Eulerian Length of a Hamiltonian
2 graph G. The ij th entry in the matrix length K from vertex Vi edges from vertex Vi to path from vertex Vi to cycle from vertex Vi to B
AK , gives to vertex Vj. vertex Vj. vertex Vj. vertex Vj.
An undirected graph G with n vertices
and e edges is represented by
4 adjacency list. What is the time O (n) O (e) O (e+n) O (e2 ) C
required to generate all the connected
components?
The maximum degree of any vertex in
5 a simple graph with n vertices is
n–1 n+1 2n–1 n A
The data structure required for Breadth
6 First Traversal on a graph is queue (LIFO) stack (FIFO) array tree A
A graph with n vertices will definitely
7 have a parallel edge or self loop if the greater than n–1 less than n(n–1) greater than n(n–1)/2 less than n2/2 A
total number of edges are
An adjacency matrix representation of
8 a graph cannot contain information of : nodes edges direction of edges parallel edges D
Page 1
Graph
Page 2
Graph
Page 3
Graph
Page 4
Graph
Page 5
Graph
Page 6