Answer the following statements true (T) or false (F)
1. When using the Sort method from the Array class, the method will sort the passed in array in descending order.
2. Class Array’s method SortDesc will sort an array in descending order.
3. A linear search always compares every element in an array to a certain key value.
4. After each comparison, the binary search algorithm eliminates from consideration half the elements in the array that’s being searched.
5. Multi-dimensional arrays require two or more indices to identify particular elements.
1. False. The array will be sorted in ascending order.
2. False. To sort an array in descending, one should first call the Sort method and then Reverse.
3. False. A linear search will stop comparing elements once the key is found.
4.True.
5. True.
You might also like to view...
____________________ is a phenomenon in which the project manager spends more time documenting project tasks, collecting performance measurements, recording project task information, and updating project completion forecasts than accomplishing meaningful project work.
Fill in the blank(s) with the appropriate word(s).
A single episode of a podcast series is called a(n) ____________________.
Fill in the blank(s) with the appropriate word(s).