Mathematics Test Data Structures and Algorithms MCQs Test 1 Online For Preparation Data Structures and Algorithms MCQs Test 1 Online For Preparation 1. The Worst case occur in linear search algorithm when ?A. Item is the last element in the array or is not there at allB. Item is somewhere in the middle of the array C. Item is the last element in the array D. Item is not in the array at all Loading... 2. The complexity of linear search algorithm is ?A. O(n) B. O(log n) C. O(n log n)D. O(n2) Loading... 3. The complexity of Bubble sort algorithm is ?A. O(log n) B. O(n) C. O(n2) D. O(n log n) Loading... 4. Which of the following case does not exist in complexity theory ?A. Best case B. Worst case C. Null caseD. Average case Loading... 5. 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 number of statements D. Counting the kilobytes of algorithm Loading... 6. The space factor when determining the efficiency of algorithm is measured by ?A. Counting the minimum memory needed by the algorithm B. Counting the maximum 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... 7. Two main measures for the efficiency of an algorithm are ?A. Data and spaceB. Complexity and capacity C. Processor and memory D. Time and space Loading... 8. The complexity of the average case of an algorithm is ?A. Much more simpler to analyze than that of worst case B. Much more complicated to analyze than that of worst case C. None or aboveD. Sometimes more complicated and some other times simpler than that of worst case Loading... 9. The complexity of Binary search algorithm is ?A. O(n) B. O(n2) C. O(n log n)D. O(log ) Loading... 10. The Average case occur in linear search algorithm ?A. When Item is somewhere in the middle of the array B. When Item is not in the array at all 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... Loading... Related PostsData Structures and Algorithms MCQs Test 6 Online For…Data Structures and Algorithms MCQs Test 4 Online For…Data Structures and Algorithms MCQs Test 3 Online For…Data Structures and Algorithms MCQs Test 2 Online For…Data Structures and Algorithms MCQs Test 5 Online For…ASF Inspector Jobs 2023 FPSC Online Apply Continue Reading Previous Data Structures and Algorithms MCQs Test 2 Online For Preparation Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Δ