Data Structures and Algorithms MCQs Test 1 Online For Preparation Malik Asghar — April 20, 2018 in Mathematics Test • add comment Data Structures and Algorithms MCQs Test 1 Online For Preparation 1. The complexity of linear search algorithm is ?A. O(n log n)B. O(n2) C. O(log n) D. O(n) Loading... 2. Which of the following case does not exist in complexity theory ?A. Worst case B. Null caseC. Average case D. Best case Loading... 3. The Worst case occur in linear search algorithm when ?A. Item is not in the array at all B. Item is somewhere in the middle of the array C. Item is the last element in the array D. Item is the last element in the array or is not there at all Loading... 4. The complexity of Bubble sort algorithm is ?A. O(n) B. O(n log n)C. O(log n) D. O(n2) Loading... 5. The complexity of Binary search algorithm is ?A. O(n2) B. O(n) C. O(log ) D. O(n log n) Loading... 6. Two main measures for the efficiency of an algorithm are ?A. Complexity and capacity B. Data and spaceC. Time and space D. Processor and memory Loading... 7. The space factor when determining the efficiency of algorithm is measured by ?A. Counting the minimum memory needed by the algorithm B. Counting the average memory needed by the algorithm C. Counting the maximum disk space needed by the algorithmD. Counting the maximum memory needed by the algorithm Loading... 8. The Average case occur in linear search algorithm ?A. When Item is not in the array at all B. When Item is somewhere in the middle of the array C. When Item is the last element in the array D. When Item is the last element in the array or is not there at all Loading... 9. The time factor when determining the efficiency of algorithm is measured by ?A. Counting the number of key operations B. Counting microseconds C. Counting the kilobytes of algorithmD. Counting the number of statements Loading... 10. The complexity of the average case of an algorithm is ?A. Much more complicated to analyze than that of worst case B. Much more simpler to analyze than that of worst case C. Sometimes more complicated and some other times simpler than that of worst case D. None or above Loading... Loading... Related NTS Results Post:Chemistry MCQs Test 06 Online PreparationIslamiat Mcqs Test 03 Online PreparationIslamiat Mcqs Test 02 Online PreparationIslamiat Mcqs Test 01 Online PreparationChemistry MCQs Test 05 Online PreparationViruses MCQs Test 03 Preparation OnlineViruses MCQs Test 01 Preparation OnlineChemistry MCQs Test 07 Online Preparation