GATE 2007 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2007

184 questions

MCQ 1841-mark 184

Questions 81–85 of 184

Q81Binary Tree1 markMCQ−0.33 if wrong
The inorder and preorder traversal of a binary tree are d b e a f c g and a b d e c f g, respectively The postorder traversal of the binary tree is:

Q82Binary Tree1 markMCQ−0.33 if wrong
The maximum number of binary trees that can be formed with three unlabeled nodes is:

Q83Binary Tree1 markMCQ−0.33 if wrong
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number of nodes in a binary tree of height h is:

Q84n-ary Tree1 markMCQ−0.33 if wrong
A complete n-ary tree is a tree in which each node has n children or no children. Let I be the number of internal nodes and L be the number of leaves in a complete n-ary tree. If L = 41, and I = 10, what is the value of n?

Q85Binary Search Tree1 markMCQ−0.33 if wrong
When searching for the key value 60 in a binary search tree, nodes containing the key values 10, 20, 40, 50, 70, 80, 90 are traversed, not necessarily in the order given. How many different orders are possible in which these key values can occur on the search path from the root to the node containing the value 60?