Algorithm Design MCQ Test: Algorithm Design MCQs - Practice Questions
1. What is the purpose of the 'while' loop in programming?
2. Which sorting algorithm is known for its best-case time complexity of O(n log n)?
3. What is the time complexity of quicksort algorithm?
4. What is the time complexity of the 'selection sort' algorithm in the worst case?
5. What is the time complexity of linear search in an unsorted array?
6. Which sorting algorithm has a quadratic time complexity in the worst case?
7. What is the purpose of the 'hash table' data structure?
8. In algorithm design, what does the term 'backtracking' mean?
9. What does the term 'Dijkstra's algorithm' refer to?
10. What is the purpose of the 'divide and conquer' algorithmic strategy?
11. What is the purpose of the 'Floyd-Warshall algorithm'?
12. What is the purpose of the 'do-while' loop in programming?
13. What does the term 'asymptotic notation' represent in the analysis of algorithms?
14. What is the purpose of the 'continue' statement in a loop?
15. What is the time complexity of an algorithm that has logarithmic runtime?
16. What is the purpose of the 'Knapsack problem' in algorithmic theory?
17. Which of the following is an example of a 'divide and conquer' algorithm?
18. What is the time complexity of the 'bubble sort' algorithm in the worst case?
19. In algorithm design, what does 'NP-hard' mean?
20. In algorithm design, what is 'recursion'?
21. Which data structure is used to represent hierarchical relationships between elements?
22. What does the term 'recursion' refer to in programming?
23. Which data structure follows the Last In, First Out (LIFO) principle?
24. Explain the concept of dynamic programming and provide an example.
25. What is the primary purpose of the 'else' statement in programming?
26. What does the term 'iteration' mean in programming?
27. What does the term 'dynamic programming' mean in algorithm design?
28. In algorithm design, what does the term 'optimization' refer to?
29. What is the time complexity of the 'insertion sort' algorithm in the worst case?
30. What is the purpose of the 'shell sort' algorithm?
31. What is the purpose of the 'Breadth-First Search (BFS)' algorithm?
32. What is the primary purpose of the 'heap' data structure?
33. What is the difference between BFS and DFS in graph traversal?
34. What is the primary goal of the 'backtracking' algorithmic technique?
35. What is the purpose of the 'binary search' algorithm?
36. In algorithm design, what does the term 'Big O notation' represent?
37. What is the time complexity of the 'quick sort' algorithm in the average case?
38. Which of the following is a characteristic of a 'greedy algorithm'?
39. Which data structure follows the First In, First Out (FIFO) principle?
40. What does the term 'greedy algorithm' imply?
41. What is the purpose of dynamic programming in algorithm design?
42. What is the primary goal of the 'merge sort' algorithm?
43. In the context of algorithm design, what does the term 'NP-complete' mean?
44. What is the primary goal of the 'greedy algorithm'?
45. What is the primary purpose of the 'radix sort' algorithm?
46. What is the primary purpose of the 'break' statement in a loop?
47. Which algorithmic technique involves breaking a problem into smaller subproblems and solving them independently?
48. What is the purpose of the 'Depth-First Search (DFS)' algorithm?
49. In the context of algorithm design, what does the term 'efficiency' refer to?
50. Which of the following is an example of a searching algorithm?