MCQ Trees
MCQ Trees
and
graph. It includes MCQ questions on in-order traversal and post-order traversal of the binary tree, complete binary tree, pre-order,
in-order, and post-order traversal in the tree and graph in the data structure.
1) The post-order traversal of the binary tree is DEBFCA. Find out the pre-order traversal.
A. ABFCDE
B. ADBFEC
C. ABDECF
D. ABDCEF
2) While converting the binary tree into an extended binary tree, all the original nodes in the binary tree are …….
A. Internal nodes on extended tree
B. External nodes on extended tree
C. Vanished on extended tree
D. Intermediate nodes on extended tree
Remaining Time -3:10
Fullscreen
3) The in-order traversal of the tree will yield a sorted listing of elements of tree in ……..
A. binary trees
B. binary search trees
C. heaps
D. binary heaps
4) In a binary tree, certain null entries are replaced by special pointers which point to nodes higher in the tree for efficiency. These
special pointers are called ………
A. Leaf
B. Branch
C. Path
D. Thread
8) A binary tree whose every node has either zero or two children is called ………
A. Complete binary tree
B. Binary Search tree
C. Extended binary tree
D. E2 tree
9) If every node u in G is adjacent to every other node v in G, A graph is said to be ……..
A. isolated
B. complete
C. finite
D. strongly connected.
10) The post order traversal of a binary tree is DEBFCA. Find out the pre-order Traversal.
A. ABFCDE
B. ADBFEC
C. ABDECF
D. ABDCEF
Read Also: Solved MCQ on Tree and Graph in Data Structure
11) In a graph, if e=[u,v], then u and v are called
A. endpoints of e
B. adjacent nodes
C. neighbors
D. all of the above
12) In-order traversing a tree resulted in E A C K F H D B G; the pre-order traversal would return.
A. FAEKCDBHG
B. FAEKCDHGB
C. EAFKHDCBG
D. FEAKDCHBG
16) Three standards ways of traversing a binary tree T with root R …….
A. Prefix, infix, postfix
B. Pre-process, in-process, post-process
C. Pre-traversal, in-traversal, post-traversal
D. Pre-order, in-order, post-order
17) A graph is said to be ……. if every node u in G is adjacent to every other node v in G.
A. Absolute
B. Entire
C. Inclusive
D. Complete
18) In threaded binary tree ……… points to higher nodes in the tree.
A. Info
B. Root
C. Threads
D. Child
19) A graph is said to be ……. if its edges are assigned data.
A. Tagged
B. Marked
C. Lebeled
D. Sticked
Answers:
1) C. ABDECF
2) A. Internal nodes on extended tree
3) B. binary search trees
4) D. Thread
5) B. values in a node is greater than every value in children of it.
6) B. Binary search trees
7) B. e begins at u and ends at v
8) C. Extended binary tree
9) B. complete
10) C. ABDECF
11) D. All of the above
12) B. FAEKCDHGB
13) D. All of the above
14) A. Data
15) B. complete
16) D. Pre-order, in-order, post-order
17) D. Complete
18) C. Threads
19) C. Lebeled
20) C. Both left & right subtrees are empty