DM Unit 4 MCQ
DM Unit 4 MCQ
DM Unit 4 MCQ
ol Dhole's screen
18. A graph is a tree if and only if it is
(a) Completely connected (b)minimally connected
(c) Contains circuit (d) is planar
19. T is a graph with n vertices. T is connected and has exactly n— 1 edges then
(a) T isa tree
(b) T contains no cycle
(c) Every pair of vertices in T is connected by exactly one path
(d) Addition of new edge will create a cycle
20. A tree with n vertices has
a) n-l edges. b)nedges c)ntledges d)n-2 edges
zk, What would be the minimum number of edges in a connected graph having 11
vertices?
(a) 5 (b) 10 (Cc) 15 (d) 20
22: In an m-ary tree each internal vertices have .
A) Exactly m children’s B) minimum m children’s
C) At most m children’s—e—ee__o-_e__0—e_#
D) exactly 2m children’s
In an full m-ary tree each internal vertices have
A) Exactly m children’s or 0 children’s B) minimum m children’s
C) At most m children’s D) exactly 2m children’s
In a full m-ary tree the relation between total number of nodes n and number
of internal vertices1 is
A)n=i+1 B) n=mi -1 C)n=mt+l D)m=nitl
Which vertex is the root in the following graph?
»| Dhole's screen
Type Il: Planar graph
1
a b
be
a
e c
i
d c d
b c
7 Vo
4 Vy Vs F e
“*Type IV: Tree & Minimal Spanning Tree
¢ Consider the given graph
What is the weight of the minimum spanning tree
using the Prim’s algorithm? 22
rc
30
3s |2
A 1D
e ee & @ @ @ @ @
A tree with 10 vertices has x vertices of degree 1 and y vertices of degree 3 then values of x
and y are
A)x=6,y =4 B) x=5,y=5 C)x=4,y=6 D)x=2,y=8
A tree with 7 vertices has x vertices of degree 1 and y vertices of degree 2 then values of x and
y are
Ajx=2Zy=5 B) x=3)\y=2 Cyxe4 y= 3 D) x=3,y=4
Which of the following is true?
a) Prim’s algorithm initializes with a vertex
b) Prim’s algorithm initializes with a edge
c) Prim’s algorithm initializes with a vertex which has smallest edge
d) Prim’s algorithm initializes with a forest
Which of the following is true?
a) Kruskal’s algorithm initializes with a vertex
b) Kruskal’s algorithm initializes with a edge
c) Kruskal’s algorithm initializes with a vertex which has smallest edge
d) Kruskal’s algorithm initializes with a forest
Which of the following graph is tree/notthee.
*“* Type V: Eccentricity
How many internal vertices does a full 4-ary tree with 21 vertices have?
(a) 5 (b) 4 (c) 16 (d) 21
How many vertices does a full 3-ary tree with 4 internal vertices have?
(a) 9 (5) O _Sise Og _ * S$ _2 Sides
10. |How many edge does a full binary tree with 10 internal vertices have?
(a) 9 (b) 18 (c) 20 (d) 21 e
11. |How many internal vertices does a full 4-ary tree with 21 vertices have?
(a) 5 (b) 4 (c) 16 (d) 21 A
12. |How many vertices does a full 3-ary tree with 4 internal vertices have?
(a) 9 (b) 13 (c) 5 (d) 4 B
13. |How many internal vertices does a full 3-ary tree with 13 veitices have?
(a) 9 (b) 13 (c) 5 (d) 4 D
14. |How many vertices does a full 4-ary tree with 16 leaves have?
(a) 5 (b) 4 (c) 16 (d) 21 D
15.. | How many internal vertices does a full 4-ary tree with 16 leaves have?
(a) 5 (b) 4 (c) 16 (d) 21 A
** Type VII: Prefix Codes & Optimal Binary Tree