Algorithm Design MCQ Test: Algorithm Design MCQs - Practice Questions
1. What is the time complexity of an algorithm that has logarithmic runtime?
2. In algorithm design, what does the term 'optimization' refer to?
3. Which of the following is an example of a 'divide and conquer' algorithm?
4. What is the purpose of the 'do-while' loop in programming?
5. What is the purpose of the 'divide and conquer' algorithmic strategy?
6. What is the time complexity of the 'bubble sort' algorithm in the worst case?
7. Explain the concept of dynamic programming and provide an example.
8. What is the purpose of the 'while' loop in programming?
9. What is the time complexity of an algorithm that has constant runtime?
10. Which sorting algorithm has a quadratic time complexity in the worst case?
11. What does the term 'recursion' refer to in programming?
12. Which of the following is an example of a recursive algorithm?
13. What is the primary purpose of the 'return' statement in a function?
14. What is the purpose of the 'shell sort' algorithm?
15. In algorithm design, what does 'NP-hard' mean?
16. What is the purpose of the 'if-else' statement in programming?
17. In algorithm design, what does the term 'backtracking' mean?
18. In the context of algorithm design, what does the term 'efficiency' refer to?
19. What is the primary purpose of the 'break' statement in a loop?
20. In algorithm design, what does the term 'P vs NP problem' refer to?
21. What is the primary goal of the 'backtracking' algorithmic technique?
22. Which data structure follows the First In, First Out (FIFO) principle?
23. Which data structure follows the Last In, First Out (LIFO) principle?
24. What is the time complexity of the 'quick sort' algorithm in the average case?
25. Which of the following is a characteristic of a 'greedy algorithm'?
26. What does the term 'iteration' mean in programming?
27. What is the primary goal of the 'merge sort' algorithm?
28. What does the term 'greedy algorithm' imply?
29. Which of the following is an example of a searching algorithm?
30. Which algorithmic technique involves breaking a problem into smaller subproblems and solving them independently?