MCQsSpecialized MCQsC++ and AlgorithmsC++ and Algorithms 1).Which of the following is a commonly used algorithm for searching in C++?1) Binary Search2) Linear Search3) Depth First Search4) All of the above 2).Which C++ Standard Library class provides a way to store and manipulate sequences of elements?1) vector2) map3) set4) deque 3).Which algorithm is typically used for sorting in C++?1) Quick Sort2) Merge Sort3) Bubble Sort4) All of the above 4).What is the time complexity of the `std::sort()` algorithm in the worst case?1) O(n log n)2) O(n^2)3) O(n)4) O(log n) 5).Which algorithm is best suited for finding the shortest path in a graph?1) Dijkstra's Algorithm2) Binary Search3) Breadth-First Search4) None of the above 6).What is the purpose of a hash table in C++?1) To store data with unique keys for fast lookup2) To store ordered data3) To optimize sorting algorithms4) None of the above 7).Which of the following algorithms is used to solve the Traveling Salesman Problem (TSP)?1) Dynamic Programming2) Greedy Algorithm3) Branch and Bound4) All of the above 8).Which data structure is typically used in a breadth-first search (BFS) algorithm?1) Queue2) Stack3) Priority Queue4) Array 9).What is the time complexity of inserting an element into an unordered_map in C++?1) O(1)2) O(log n)3) O(n)4) O(n^2) 10).Which C++ algorithm is used for merging two sorted ranges?1) std::merge2) std::sort3) std::partition4) std::reverse