Professional Documents
Culture Documents
-------------------------------------------------------------------------------------------------------------------------------------------
CHOOSE THE CORRECT ANSWER ½ x 10 = 5 M
1 In a linked representation of a binary tree, if there are n number of nodes then the number of [ ]
null links are __________
A)n+1 B)n C)n-1 D)None of these
2 Which traversal of tree visit root , left subtree, then finally right subtree [ ]
A)Inorder B)Preorder C)Postorder D)Levelorder
3 In a red black tree if a node is colored with red color then child can color with [ ]
A)Black B)Red C)Green D)Null
4 The possible number of pointers and key values in a m-way search tree are respectively [ ]
A)m,m-1 B)m-1,m C)m&m+1 D)m-1,m-1
5 The sorting technique which is purely based on pivot node classification [ ]
A) Shell Sort B) Heap Sort C)Quick Sort D)Insertion Sort
6 No of merge files required in balance two-way merge sort: [ ]
A) 4 B)2 C)3 D)1
7 No of comparisons needed in straight selection sort for an unsorted list [ ]
A) (3*(n-1))/2 B) (3*(n-1))/n C) (3*(n-1)2)/n D)n(n-1)/2
8 The hashing technique purely works on classification of memory into buckets. [ ]
A)Linear Hashing B)Pseudo Random Hashing C) Rotation hashing D) None of these
9 The time complexity for binary search is [ ]
A)O(n) B)O(log n) C)O(n2) D)O(n/2)
10 Apply modulo division method for the key value 78 of list size 4 and address is: [ ]
A)2 B) 10 C)0 D)9
FILL IN THE BLANKS ½x5=2½M