Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

WINTER 2018 1. (10 Points] Fill in the blanks: data types in Java include int (I

ID: 3728520 • Letter: W

Question

WINTER 2018 1. (10 Points] Fill in the blanks: data types in Java include int (Integers), double (real numbers) (logica char (text characters), and values). b. The constructor of a derived class can access the constructor of its base class by using the reserved word is a named memory location whose values cannot be changed -the ability to define two or more different methods with the same name C. as long as they have different method signatures. A is a type of Java Collection, that only stores unique values. f. A ! (logical operator) in an expression means . g. A h. When a program looks at array elements in order from first to last to find a value, e. method does not return a value. it is using the_ _ search algorithm. A(n) in every derived class. i. method is one which has no body and is meant to be overridden j. Binary search cannot be used with an array that is not 2. 110 Points] True/False: a. The merge sort algorithm is much more efficient than the selection sort algorithm. b. Private methods are not inherited c. If one element from an array is passed as a parameter to a method, then the called method can modify any element in the array. d. If you add at least one constructor to a class, no constructors will be automatically created for the class. Polymorphism can be applied to a collection of classes that implement a common interface e. f Under inheritance, a superclass inherits all of the members from its subclasses

Explanation / Answer

Hi, I have answered Q2.

Please repost others in separate post.


Q2.
a. True , mergerSort takes O(nlogn) and selectionSort takes O(n^2) in worst case
b. True
c. False
d. True
e. True
f. False, a subclass inherits fron superclass