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

GATE 2008

185 questions

MCQ 1851-mark 52 · 2-mark 133

Questions 86–90 of 185

Q86Array2 marksMCQ−0.67 if wrong
The minimum number of comparisons required to determine if an integer appears more than n/2 times in a sorted array of n integers is

Q88Binary Tree2 marksMCQ−0.67 if wrong
A binary tree with n>1 nodes has n1n_{1}, n2n_{2} and n3n_{3} nodes of degree one, two and three respectively. The degree of a node is defined as the number of its neighbors.
Starting with the above tree, while there remains a node v of degree two in the tree, add an edge between the two neighbors of v and then remove v from the tree. How many edges will remain at the end of the process?

Q89Binary Tree2 marksMCQ−0.67 if wrong
A binary tree with n>1 nodes has n1n_{1}, n2n_{2} and n3n_{3} nodes of degree one, two and three respectively. The degree of a node is defined as the number of its neighbors.

n3n_{3} can be expressed as

Q90Binary Tree2 marksMCQ−0.67 if wrong
The following three are known to be the preorder, inorder and postorder sequences of a binary tree. But it is not known which is which.
I.MBCAFHPYK
II.KAMCBYPFH
III.MABCKYFPH
Pick the true statement from the following.