Exam 16: Searching, Sorting and the Vector Type
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
If you want to use the class vector in your program, you must include the following statement: ____________________.
(Short Answer)
4.9/5
(32)
The formula to find the index of the middle element of a list is ____.
(Multiple Choice)
4.7/5
(38)
For a list of length n, the bubble sort makes exactly ____ key comparisons.
(Multiple Choice)
4.8/5
(39)
When moving array values for insertion sort, to move list[4] into list[2], first ____.
(Multiple Choice)
4.9/5
(35)
In the bubble sort algorithm, which code accomplishes swapping values in elements at positions index and index + 1?
(Multiple Choice)
4.8/5
(25)
In a sequential search, if a search item is not in a list of 1000 elements, then ____ key comparisons will be made.
(Multiple Choice)
4.8/5
(37)
The type vector provides the function ____________________, which deletes all elements from the object.
(Short Answer)
4.7/5
(41)
In a bubble sort for list of length n, the first step is to compare elements ____.
(Multiple Choice)
4.7/5
(34)
The type vector provides the expression ____________________, which returns true if the object vecList is empty and false otherwise.
(Short Answer)
4.7/5
(45)
The type vector provides the expression ____________________, which deletes the last element of vecList.
(Short Answer)
4.8/5
(31)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)