Exam 8: Searching and Sorting Arrays
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
A(n) ________ search is more efficient than a(n) ________ search
Free
(Multiple Choice)
4.9/5
(44)
Correct Answer:
C
The bubble sort is an easy way to arrange data into ascending order, but it cannot arrange data into descending order.
Free
(True/False)
4.8/5
(35)
Correct Answer:
False
Regardless of the algorithm being used, a search through an array is always performed
Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
E
The _________ sort usually performs fewer exchanges than the ________ sort.
(Multiple Choice)
4.7/5
(32)
A ________ algorithm is a method of locating a specific item of information in a larger collection of data.
(Multiple Choice)
4.8/5
(43)
Before you can perform a bubble sort, the data must be stored in descending order.
(True/False)
5.0/5
(42)
Array elements must be _________ before a binary search can be performed.
(Multiple Choice)
5.0/5
(38)
Using a linear search to find a value that is stored in the last element of an array of 20,000 elements, ____________ element(s) must be compared.
(Multiple Choice)
4.8/5
(36)
In the average case, an item is just as likely to be found near the beginning of an array as near the end.
(True/False)
4.8/5
(36)
The _________ is adequate for searching through small arrays.
(Multiple Choice)
4.8/5
(36)
Before you can perform a selection sort, the data must be stored in ascending order.
(True/False)
4.8/5
(35)
Using a binary search, you are more likely to find an item than if you use a linear search.
(True/False)
4.9/5
(39)
When an array is sorted from highest to lowest, it is said to be in _____ order.
(Multiple Choice)
4.8/5
(38)
The number of comparisons made by a binary search is expressed in powers of two.
(True/False)
4.9/5
(35)
A(n) ________ search uses a loop to sequentially step through an array.
(Multiple Choice)
4.8/5
(36)
A binary search begins with the _________ element of an array.
(Multiple Choice)
4.8/5
(26)
___________ algorithms are used to arrange random data into some order.
(Multiple Choice)
4.8/5
(39)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)