Answer the following statements true (T) or false (F)
1. In a bubble sort algorithm to be sorted in ascending order, after the first pass, the first element will hold the lowest value.
2. One drawback to the binary search is that it cannot be used with an array that contains string elements.
3. To use the binary search algorithm, the elements in the array must first be sorted in ascending or descending order.
4. When using the insertion sort algorithm, on the first pass the first two elements are sorted.
1. FALSE
2. FALSE
3. TRUE
4. TRUE
You might also like to view...
Resource utilization is usually measured as the percentage of time that the resource is idle.
Answer the following statement true (T) or false (F)
When you purchase or download a(n) ____ for an object-oriented programming language, it comes packaged with many predefined, built-in classes.
A. compiler B. IDE C. sunny day case D. interpreter