Question 1 - A class that represents the most general entity in an inheritance hierarchy is called a/an ____.
A. Inheritance class.
B. Default class.
C. Subclass.
D. Superclass.
1 points
Question 2 - After 1 iteration of selection sort working on an array of 10 elements, what must hold true?
A. the array cannot be sorted
B. the largest element is correctly placed
C. one element must be correctly placed
D. at least two elements are correctly placed
1 points
Question 3 - A/an _____________ can allow you to implement a new method for a class that is not under your control
A. abstract
B. object
C. callback
D. interface
1 points
Question 4 - The performance of an algorithm is most closely related to what?
A. the total number of elements
B. the number of lines of code in the method
C. the total number of element visits
D. the type of elements
1 points
Question 5 - ____ is often described as the is-a relationship.
A. Inheritance.
B. Aggregation.
C. Polymorphism.
D. Dependency.
1 points
Question 6 - What type of inheritance does Java have?
single inheritance
double inheritance
multiple inheritance
class inheritance
1 points
Question 7 - Which statement about methods in an interface is true?
A. All methods in an interface are automatically static.
B. All methods in an interface must be explicitly declared as private or public.
C. All methods in an interface are automatically public.
D. All methods in an interface are automatically private.
1 points
Question 8 - The ____ model of software development describes an iterative process in which design and implementation are repeated.
A. Rational Unified Process
B. spiral
C. continuous integration
D. waterfall
1 points
Question 9 - After 1 iteration of selection sort working on an array of 10 elements, what must hold true?
A. at least two elements are correctly placed
B. the array cannot be sorted
C. one element must be correctly placed
D. the largest element is correctly placed
1 points
Question 10 - A recursive method without a base case would ___
A. be more efficient
B. end immediately
C. never terminate
D. not be recursive