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...
To differentiate the absolute pathnames to files that are located on different drives, HTML requires you to include the drive letter followed by a ____.
A. comma B. period C. slash D. vertical bar
Different levels in a document are visible in the ________ view
A) Master B) Layout C) Design D) Outline
A _____, or spider, is a search engine program that automatically searches the web to find new websites and update information about old websites.?
A. ?runner B. web ?robot C. ?crab D. ?database
Another name for Phase 5: Systems Implementation is ________.
A. feasibility B. development C. conversion D. analysis