Data Structures and Algorithms MCQs Test 1 Online For Preparation Leave a Comment / Mathematics Test / By Malik Asghar 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(n) C. O(n2) D. O(log n) Loading... 2. The complexity of Bubble sort algorithm is ?A. O(log n) B. O(n) C. O(n2) D. O(n log n) Loading... 3. Two main measures for the efficiency of an algorithm are ?A. Complexity and capacity B. Time and space C. Processor and memory D. Data and space Loading... 4. Which of the following case does not exist in complexity theory ?A. Worst case B. Null caseC. Average case D. Best case Loading... 5. The complexity of Binary search algorithm is ?A. O(n2) B. O(n log n)C. O(log ) D. O(n) Loading... 6. The Average case occur in linear search algorithm ?A. When Item is somewhere in the middle of the array B. When Item is the last element in the array or is not there at allC. When Item is the last element in the array D. When Item is not in the array at all Loading... 7. The space factor when determining the efficiency of algorithm is measured by ?A. Counting the maximum memory needed by the algorithm B. Counting the minimum memory needed by the algorithm C. Counting the average memory needed by the algorithm D. Counting the maximum disk space needed by the algorithm Loading... 8. 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 or is not there at allD. Item is the last element in the array Loading... 9. The time factor when determining the efficiency of algorithm is measured by ?A. Counting microseconds B. Counting the number of key operations C. Counting the kilobytes of algorithmD. Counting the number of statements Loading... 10. The complexity of the average case of an algorithm is ?A. Sometimes more complicated and some other times simpler than that of worst case B. Much more simpler to analyze than that of worst case C. None or aboveD. Much more complicated to analyze than that of worst case Loading... Loading... Related NTS Results Post:Biology Mcqs Test 13 Online PreparationBiology Mcqs Test 10 Online PreparationBiology Mcqs Test 11 Online PreparationBiology Mcqs Test 09 Online PreparationBiology Mcqs Test 08 Online PreparationBiology Mcqs Test 06 Online PreparationBiology Mcqs Test 07 Online PreparationIslamiat Mcqs Test 03 Online Preparation