Q. Which sorting algorithm has the best average time complexity?
A.
Bubble Sort
B.
Insertion Sort
C.
Quick Sort
D.
Selection Sort
Show solution
Solution
Quick Sort has the best average time complexity of O(n log n), making it more efficient than the other options listed.
Correct Answer:
C
— Quick Sort
Learn More →
Q. Which sorting algorithm has the best average-case performance?
A.
Bubble Sort
B.
Quick Sort
C.
Selection Sort
D.
Insertion Sort
Show solution
Solution
Quick Sort has the best average-case performance among the listed algorithms with O(n log n).
Correct Answer:
B
— Quick Sort
Learn More →
Q. Which sorting algorithm has the best average-case time complexity?
A.
Bubble Sort
B.
Insertion Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort has an average-case time complexity of O(n log n), which is better than the average-case complexities of the other options.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm is based on the divide and conquer strategy?
A.
Bubble Sort
B.
Insertion Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is based on the divide and conquer strategy.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm is based on the divide and conquer technique?
A.
Bubble Sort
B.
Insertion Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is based on the divide and conquer technique.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm is based on the divide-and-conquer paradigm?
A.
Bubble Sort
B.
Insertion Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is a sorting algorithm that uses the divide-and-conquer paradigm to sort elements.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm is based on the divide-and-conquer principle and is stable?
A.
Quick Sort
B.
Merge Sort
C.
Heap Sort
D.
Bubble Sort
Show solution
Solution
Merge Sort is a stable sorting algorithm that uses the divide-and-conquer principle.
Correct Answer:
B
— Merge Sort
Learn More →
Q. Which sorting algorithm is based on the divide-and-conquer principle?
A.
Bubble Sort
B.
Insertion Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is based on the divide-and-conquer principle, where the array is divided into halves, sorted, and then merged.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm is best suited for large datasets that do not fit into memory?
A.
Quick Sort
B.
Merge Sort
C.
Heap Sort
D.
Bubble Sort
Show solution
Solution
Merge Sort is best suited for large datasets that do not fit into memory due to its external sorting capabilities.
Correct Answer:
B
— Merge Sort
Learn More →
Q. Which sorting algorithm is best suited for linked lists?
A.
Quick sort
B.
Merge sort
C.
Bubble sort
D.
Heap sort
Show solution
Solution
Merge sort is best suited for linked lists as it can be implemented without additional space and works well with the linked structure.
Correct Answer:
B
— Merge sort
Learn More →
Q. Which sorting algorithm is best suited for partially sorted data?
A.
Bubble Sort
B.
Insertion Sort
C.
Quick Sort
D.
Heap Sort
Show solution
Solution
Insertion Sort is best suited for partially sorted data as it can take advantage of the existing order.
Correct Answer:
B
— Insertion Sort
Learn More →
Q. Which sorting algorithm is considered the most efficient for large datasets?
A.
Bubble Sort
B.
Insertion Sort
C.
Quick Sort
D.
Selection Sort
Show solution
Solution
Quick Sort is generally considered the most efficient for large datasets due to its average-case time complexity of O(n log n).
Correct Answer:
C
— Quick Sort
Learn More →
Q. Which sorting algorithm is generally considered the fastest for large datasets?
A.
Bubble Sort
B.
Insertion Sort
C.
Quick Sort
D.
Selection Sort
Show solution
Solution
Quick Sort is generally considered the fastest for large datasets due to its average time complexity of O(n log n).
Correct Answer:
C
— Quick Sort
Learn More →
Q. Which sorting algorithm is generally considered the most efficient for large datasets?
A.
Bubble Sort
B.
Insertion Sort
C.
Quick Sort
D.
Selection Sort
Show solution
Solution
Quick Sort is generally considered the most efficient for large datasets due to its average time complexity of O(n log n).
Correct Answer:
C
— Quick Sort
Learn More →
Q. Which sorting algorithm is generally faster for small datasets?
A.
Quick Sort
B.
Merge Sort
C.
Heap Sort
D.
Insertion Sort
Show solution
Solution
Insertion Sort is generally faster for small datasets due to its low overhead and simplicity.
Correct Answer:
D
— Insertion Sort
Learn More →
Q. Which sorting algorithm is generally the fastest for large datasets?
A.
Bubble Sort
B.
Quick Sort
C.
Insertion Sort
D.
Selection Sort
Show solution
Solution
Quick Sort is generally the fastest for large datasets due to its average-case time complexity of O(n log n).
Correct Answer:
B
— Quick Sort
Learn More →
Q. Which sorting algorithm is not in-place?
A.
Quick Sort
B.
Merge Sort
C.
Heap Sort
D.
Insertion Sort
Show solution
Solution
Merge Sort is not an in-place sorting algorithm as it requires additional space for merging.
Correct Answer:
B
— Merge Sort
Learn More →
Q. Which sorting algorithm is not stable?
A.
Bubble Sort
B.
Merge Sort
C.
Insertion Sort
D.
Quick Sort
Show solution
Solution
Quick Sort is not a stable sorting algorithm, as it can change the relative order of equal elements.
Correct Answer:
D
— Quick Sort
Learn More →
Q. Which sorting algorithm is often used in real-world applications for its efficiency?
A.
Bubble sort
B.
Quick sort
C.
Insertion sort
D.
Selection sort
Show solution
Solution
Quick sort is often used in real-world applications for its efficiency, especially with large datasets.
Correct Answer:
B
— Quick sort
Learn More →
Q. Which sorting algorithm is stable among the following?
A.
Quick Sort
B.
Heap Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is a stable sorting algorithm, meaning it maintains the relative order of equal elements.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm is stable?
A.
Quick Sort
B.
Heap Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is a stable sorting algorithm, meaning it maintains the relative order of equal elements.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm is typically faster for small datasets?
A.
Quick Sort
B.
Merge Sort
C.
Heap Sort
D.
Insertion Sort
Show solution
Solution
Insertion Sort is generally faster for small datasets due to its low overhead and simplicity.
Correct Answer:
D
— Insertion Sort
Learn More →
Q. Which sorting algorithm is typically used in the implementation of the 'sort' function in many programming languages?
A.
Bubble Sort
B.
Merge Sort
C.
Insertion Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is often used in the 'sort' function due to its stable sorting and O(n log n) time complexity.
Correct Answer:
B
— Merge Sort
Learn More →
Q. Which sorting algorithm uses a binary heap data structure?
A.
Quick Sort
B.
Merge Sort
C.
Heap Sort
D.
Insertion Sort
Show solution
Solution
Heap Sort uses a binary heap data structure.
Correct Answer:
C
— Heap Sort
Learn More →
Q. Which sorting algorithm uses a binary tree structure for sorting?
A.
Quick Sort
B.
Heap Sort
C.
Merge Sort
D.
Tree Sort
Show solution
Solution
Tree Sort uses a binary tree structure to sort elements by inserting them into a binary search tree.
Correct Answer:
D
— Tree Sort
Learn More →
Q. Which sorting algorithm uses a divide-and-conquer approach?
A.
Bubble Sort
B.
Insertion Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort uses a divide-and-conquer approach by dividing the array into halves, sorting them, and then merging.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which sorting algorithm uses a divide-and-conquer strategy?
A.
Bubble Sort
B.
Selection Sort
C.
Merge Sort
D.
Insertion Sort
Show solution
Solution
Merge Sort uses a divide-and-conquer strategy to sort the array.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which supervised learning algorithm is typically used for binary classification tasks?
A.
Linear Regression
B.
Logistic Regression
C.
K-Means Clustering
D.
Principal Component Analysis
Show solution
Solution
Logistic Regression is a common algorithm used for binary classification tasks, predicting the probability of a binary outcome.
Correct Answer:
B
— Logistic Regression
Learn More →
Q. Which technique can be used to handle missing data in a dataset?
A.
Feature scaling
B.
Imputation
C.
Normalization
D.
Regularization
Show solution
Solution
Imputation is a technique used to fill in missing values in a dataset.
Correct Answer:
B
— Imputation
Learn More →
Q. Which technique can be used to handle multicollinearity in linear regression?
A.
Increasing the sample size
B.
Removing one of the correlated variables
C.
Using a more complex model
D.
All of the above
Show solution
Solution
To handle multicollinearity, one can increase the sample size, remove one of the correlated variables, or use more complex models like Ridge regression.
Correct Answer:
D
— All of the above
Learn More →
Showing 3121 to 3150 of 3237 (108 Pages)