Multiple Choice
Code Example Ch 10-1
An int array stores the following values:
-Refer to Code Example Ch 10-1: Which of the following lists of numbers would accurately show the array after the first pass of the selection sort algorithm?
A) 9, 4, 12, 2, 6, 8, 18
B) 2, 4, 9, 6, 12, 8, 18
C) 2, 4, 12, 9, 6, 8, 18
D) 2, 4, 6, 8, 9, 12, 18
E) 2, 4, 9, 12, 6, 8, 18
Correct Answer:

Verified
Correct Answer:
Verified
Q1: If you instantiate an abstract class, the
Q2: A reference variable can refer to any
Q3: One of the advantages of the linear
Q5: Polymorphism is achieved by<br>A) overloading<br>B) overriding<br>C) embedding<br>D)
Q6: The type of the reference, not the
Q7: What kind of performance can you expect
Q8: We compare sorting algorithms by examining<br>A) the
Q9: A GUI control that allows the user
Q10: Both the insertion sort and the selection
Q11: Java allows one to create polymorphic references