Exam 16: Sorting, Searching, and Algorithm Analysis
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
The method findMax shown below is supposed to return the position of the largest
Value in the portion of an array between 0 and last,inclusive:
Int findMax(int array[ ],int last){
Int maxPos = 0;
For (int k = 1;k < = last;k++){
// Code is Missing
}
Return maxPos;
}
The missing code is
(Multiple Choice)
4.9/5
(27)
Suppose that we are searching for an item X in an array sorted in descending order.If we find that X is smaller than the middle item of the array,then we should continue our search in the half of the array whose elements
(Multiple Choice)
4.8/5
(35)
The following implementation of QuickSort
Static void doQuickSort(int array[ ],int start,int end){
Int pivotPoint;
PivotPoint = partition(array,start,end);
DoQuickSort(array,pivot+1,end);
DoQuickSort(array,start,pivot-1);
}
(Multiple Choice)
4.9/5
(41)
Showing 41 - 46 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)