Professional Documents
Culture Documents
Term 3 OOP Prelim Lab Quiz 2 - Attempt Review
Term 3 OOP Prelim Lab Quiz 2 - Attempt Review
UGRD-CS6203-2113T /
Object-Oriented Programming /
Prelim Lab Quiz 2
Question 1
Correct
a. s1.charAt
b. s1.index
c. s1.length()
d. s1.substring
Question 2
Correct
Re-implementing
an inherited method in a sub class to perform a different task from the parent
class is called -
a. Hiding
b. extending
c. Coupling
d. Binding
a. final
b. abstract
c. static
d. private
Question 4
Correct
Consider
the following statement(s) about Java:
I.
All white-space characters (blanks) are ignored by the compiler.
II.
Java keywords can be used as variable names.
III.
An identifier does not begin with a digit and does not contain any spaces.
IV.
The execution of Java applications begins at method main.
Which of them
is correct?
Question 6
Correct
a. Operator overloading
b. Method
overloading
c. None of these
d. Method
overriding
Which one is a
template for creating different objects ?
a. Method
b. Interface
c. A Class
d. An Array
Question 8
Correct
In a
class definition, the special method provided to be called to create an
instance of that class is known as a/an -
a. Object
b. Constructor
c. Interpreter
d. Destructor
Question 10
Correct
a. Inheritance
b. Method overloading
c. Operator overloading
d. Method overriding
Jump to...