Answer the following statements true (T) or false (F)
1. When values in an array need to be swapped, the array and the size of the array have to be sent to the swap module.
2. In a selection sort algorithm, the variable minValue holds the smallest value found in the scanned area of the array.
3. The data in an array can be sorted in either ascending or descending order.
4. One problem with the bubble sort is that it is limited to arranging data only in ascending order.
1. FALSE
2. TRUE
3. TRUE
4. FALSE
You might also like to view...
Which keyword instructs the compiler to infer the type of the variable from the expression on the right side of the initialization statement?
A. dynamic B. type C. infer D. var
By using ____ pixels, most visitors to the webpage will not have to scroll to see your information.
A. 1200 x 700 B. 1050 x 800 C. 800 x 600 D. 1024 x 768