Exam 9: Searching, Sorting, and Algorithm Analysis
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees37 Questions
Select questions type
To determine that a item is not in an unordered array of 100 items, linear search must examine an average of values.
(Multiple Choice)
4.9/5
(41)
We can estimate the of an algorithm by counting the number of steps it requires to solve a problem.
(Multiple Choice)
4.9/5
(32)
If algorithm A requires 2n + 1 basic operations to process an input of size n, and Algorithm B requires 3n + 2 basic operations to process the same input, algorithms A and B are considered to be equally efficient.
(True/False)
4.8/5
(34)
Bubble sort and selection sort can also be used with STL vectors.
(True/False)
4.9/5
(42)
To locate a value that is in an ordered array of 50 items, linear search must examine at most values.
(Multiple Choice)
4.8/5
(38)
A binary search begins by examining the _ element of an array.
(Multiple Choice)
4.8/5
(35)
The search is adequate for searching through small arrays, but not through large ones.
(Multiple Choice)
4.8/5
(34)
To locate a value in an ordered array of 100 items, binary search must examine at most values.
(Multiple Choice)
4.9/5
(36)
Using a linear search, you are more likely to find an item than if you use a binary search.
(True/False)
4.9/5
(27)
A(n)________search is more efficient than a(n)________search.
(Multiple Choice)
4.8/5
(42)
Using a binary search, you are more likely to find an item than if you use a linear search.
(True/False)
4.8/5
(38)
The________ sort usually performs fewer exchanges than the________ sort.
(Multiple Choice)
4.8/5
(45)
When sorting an array of objects or structures, one must decide which data item to sort on.
(True/False)
4.7/5
(29)
Showing 21 - 36 of 36
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)