The ________ algorithm is known for its simplicity but is inefficient for sorting large datasets.
- Bubble Sort
- Merge Sort
- Quick Sort
- Selection Sort
The correct option is 'Bubble Sort'. While Bubble Sort is easy to understand, it is not efficient for large datasets due to its O(n^2) time complexity.
Loading...
Related Quiz
- In C++, what happens when two overloaded functions have the same number and types of parameters but differ in return type?
- In C, what is the result of the expression (5 & 3)?
- The function ________ is used to read formatted input from the standard input.
- An array of structures in C allows you to store multiple records, where each record can have ________ of different data types.
- You are working on a program that processes user input, and you want to ensure that the input string does not exceed a certain length to prevent buffer overflow. Which string handling function would be appropriate to use?