Solved MCQ on Searching and Sorting Algorithms in Data Structure set-2
1) The worst case occur in linear search algorithm when ....... A. Item is somewhere in the middle of the array B. Item is not in the array at all C. Item is the last element in the array D. Item is the last element in the array or item is not there at all 2) If the number of records to be sorted is small, then ...... sorting can be efficient. A. Merge B. Heap C. Selection D. Bubble 3) The complexity of sorting algorithm measures the ...... as a function of the number n of items to be sorter. A. average time B. running time C. average-case complexity D. case-complexity 4) Which of the following is not a limitation of binary search algorithm? A. must use a sorted array B. requirement of sorted array is expensive when a lot of insertion and deletions are needed C. there must be a mechanism to access middle element directly D. binary search algorithm is not efficient when the data elements more than 1500. 5) The Average case occurs in linear search algorithm .......... A. when item is som...