Analysis of Algorithms and Computational Complexity Questions and Answers

Practice Mode
Showing 10 of 239 questions
Q201
the smallest number of key that will force a b-tree of order 3 to have a height 3 is
  • A 12
  • B 10
  • C 7
  • D none of these
Answer: Option C
Q202
A complete full binary tree with 10 leaves
  • A cannot have more than 19 nodes
  • B has exactly 19 nodes
  • C has exactly 17 nodes
  • D cannot have more than 17 nodes
Answer: Option B
Q203
Number of possible ordered trees with 3 nodes A, B, C is
  • A 16
  • B 12
  • C 13
  • D 14
Answer: Option B
Q204
Number of swappings needed to sort the numbers 8, 22, 7, 9, 31, 19, 5, 13 in ascending order, using bubble sort is
  • A 11
  • B 12
  • C 13
  • D 14
Answer: Option D
Q205
A hash table with 10 buckets with one slot per bucket is depicted. the symbols, S1 to S7 are initially emeged using a hashing function with linear probing. Maximum number of comparisons needed in searching an item that is not present is
  • A 6
  • B 5
  • C 4
  • D 3
Answer: Option B
Q206
A binary tree in which every non-leaf node has non-empty left and right subtrees is called a strictly binary tree. Wuch a tree with 10 leaves
  • A cannot have more than 19 nodes
  • B has exactly 19 nodes
  • C has exactly 17 nodes
  • D cannot have more than 17 nodes
Answer: Option D
Q207
Average successful search time taken by binary search on a sorted array of 10 items is
  • A 2.6
  • B 2.7
  • C 2.8
  • D 2.9
Answer: Option B
Q208
Number of possible binary trees with 3 nodes is
  • A 12
  • B 13
  • C 14
  • D 15
Answer: Option D
Q209
Sorting is useful for
  • A report generation
  • B making searching easier and efficient
  • C responding to queries easily
  • D all of these
Answer: Option A
Q210
A sorting technique that guarantees that records with the same primary key occurs in the same order in the sorted list as in the original unsorted list is said to be
  • A stable
  • B consistant
  • C external
  • D linear
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test