88. Which of the following is an advantage of a hash table in data structures?
A. Complex to implement
B. Faster access of data
C. Exhibit low locality of reference
D. Very inefficient for less number of entries
89. Postorder of the Tree in Figure c gives:
A. 6,2,14,3,8,7,5,9
B. 1,3,4,2,5,7,9,8,6 C. 1,2,3,4,6,5,7,8,9 D. 112233344455566
810: If at any time a BSTis not balanced, to restore the properties of AVL Trees, re-balancing is
done using
A. Rotation
B. Rotation and/or Exchange of colour red/black
C. Upward Promotion and/or Splitting D. None
811: Which of the following is the most widely used external memory data structure?
A. AVL tree
B. B-tree
C. Red-black tree
D. Both AVL tree and Red-black tree
812: If at anytime a SSTis not balanced, to restore the properties of Red-Black Trees, re-balancing is
done using
A. Rotation
B. Rotation and/or Exchange of colour red/black
C. Upward Promotion and/or Splitting D. None
B13: The best-case time complexity for search, insertion, and deletion in an AVL tree is:.
A. O(log n)
B. O(n)
C. Log (n)
D. Log (On)
B14: One of the following is the result of factorial (n) or n ! where n = 4
A. 2
B. 24
C.6
D. 120
B15: What is a data structure?
A. A programming language
B. A collection of algorithms and codes
C. A way to store and organize data
D. A type of computer hardware
816: In developing a dynamic programming solution, the following are/is not included in the
steps:
A. Characterise the structure of an optimal solution
B. Recursively define the value of an optimal solution
C. Compute the value of an optimal solution
D. All of the above
817:
In pattern
matching, the
output
of the
statement:
Input: txt
=
11abcab
11
,
pat=
A. [O, 3]
B. [3, O]
C. [1, 3]
D. [3, 1]
"ab" will give:
4