DM MCQ's Unit5 (Tree)
DM MCQ's Unit5 (Tree)
DM UNIT 5
Question What is the total no of nodes in full binary tree with 20 leaves?
1
Option a 38
Option b 35
Option c 37
Option d 39
Answer Option d
Marks 1
Option a 60
Option b 59
Option c 78
Option d 80
Answer Option b
Marks 1
Option a minimum
Option b maximum
Option c odd
Option even
Answer Option c
Option d Forest
Answer Option b
Marks 2
Answer Option a
Marks 1
Question _ _ _ _ _ _of vertex V in graph G is distance from V to vertex farthest from V in G
6
Option a eccentricity
Option c decentricity
Option d forest
Answer Option a
Option a 243
Option b 234
Option c 242
Option d 251
Answer Option c
Marks 1
Question Which of the following is spanning tree for following graph
8
Option a
Option b
Option c
Answer Option d
Marks 1
Option b {e7,e5}
Option c {e1,e2,e3}
Option d {e4,e5}
Answer Option c
Marks 1
Answer Option b
Marks 1
Question If weight of the full binary tree is minimum then it is called_ _ _ _ _
11
Answer Option a
Marks 1
Answer Option a
Marks 1
Question Find the number of leaves in full binary tree with n vertices.
13
Option a 2n+3/2
Option b 2n+2/4
Option c n+2/2
Option d 3n+1/2
Answer Option b
Marks 1
Answer Option b
Marks 2
Question What is the prefix code for weights 8,9,10
15
Option a {000,001,010}
Option b {000,011,11}
Option c {100,101,11}
Option d {010,000,100}
Answer Option a
Marks 1
Question What is ,maximum number of children that a binary tree node can have
16
Option a 0
Option b 1
Option c 2
Option d 3
Answer Option c
Marks 2
Answer Option a
Marks 1
Option a True
Option b False
Answer Option b
Marks 1
Option a 2
Option b 3
Option c 4
Option d 1
Answer Option b
Marks 1
Answer Option b
Marks 1
Question
21 Which of the following is true?
Option d In the kruskal’s sort edges are added to MST in decreasing order of their weights
Answer Option b
Marks 1
Option b 1 2 3 4 5 6 7 8 9 10 11
Option c 3 2 5 4 1 7 6 9 10 8 11
Option d 1 3 5 2 4 1 7 6 9 10 8 11
Answer Option b
Marks 1
Question Consider complete graph G with 4 vertices. The graph G has_ _ _ _spanning trees.
23
Option a 15
Option b 8
Option c 16
Option d 13
Answer Option c
Marks 1
Option a n^n+1
Option b n^n-2
Option c n(n+1)/2
Option d n
Answer Option b
Marks 1
Question What is minimum number of cuts that a graph with ‘n’ vertices can
25 have?
Option a n +1
Option b n(n-1)
Option c n(n+1)/2
Option d n(n-1)/2
Answer Option c
Marks 1
Option c Tree
Option d Forest
Answer Option c
Marks 1
Option a n^2
Option b n-1
Option c n*n
Option d n*(n+1)/2
Answer Option b
Marks 1
Option a n
Option b n^4
Option c n*n
Option d n-1
Answer Option a
Marks 1
Option d Forest
Answer Option c
Marks 1
Question Which of the following is false in the case of a spanning tree of a graph G?
30
Answer Option d
Marks 2