You are on page 1of 7

10/19/23, 9:49 AM Prelim Quiz 2: Attempt review

Started on Wednesday, 18 October 2023, 9:40 AM


State Finished
Completed on Wednesday, 18 October 2023, 9:46 AM
Time taken 5 mins 39 secs
Marks 19.00/20.00
Grade 95.00 out of 100.00

Question 1
Correct

Mark 1.00 out of 1.00

It is the most fundamental entity in Java or any other Object Oriented Language.

Select one:

a. Behavior
b. Class
c. Method
d. Object 

Question 2
Correct

Mark 1.00 out of 1.00

These are variables which have declarations inside methods, constructors or blocks.

Select one:

a. Instance variables
b. Variable Types
c. Class variables
d. Local variables 

https://trimestral.amaesonline.com/2313A/mod/quiz/review.php?attempt=135705&cmid=5852 1/7
10/19/23, 9:49 AM Prelim Quiz 2: Attempt review

Question 3

Correct

Mark 1.00 out of 1.00

The class whose properties and functionalities are use (inherited) by another class is known as _______________?

Select one:

a. Parent Class 
b. Child Class
c. B and C
d. Sub Class

Question 4
Correct

Mark 1.00 out of 1.00

Sub class is invoked when we create the object of subclass, it by default invokes the default constructor of super class.

Select one:

a. Constructor 
b. Super Keyword
c. Super Class
d. Inheritance

Question 5
Correct

Mark 1.00 out of 1.00

The capability of a method to do different things based on the object that it is acting upon. In other words, it allows you define one
interface and have multiple implementations.

Select one:

a. Abstraction
b. Inheritance
c. Polymorphism 
d. Encapsulation

https://trimestral.amaesonline.com/2313A/mod/quiz/review.php?attempt=135705&cmid=5852 2/7
10/19/23, 9:49 AM Prelim Quiz 2: Attempt review

Question 6

Correct

Mark 1.00 out of 1.00

It has the static keyword as a prefix in its declaration. Its definition occurs only inside a class and outside any function.

Select one:

a. Instance variables
b. Class variables 
c. Variable Types
d. Local variables

Question 7
Correct

Mark 1.00 out of 1.00

The superclass constructor can be called explicitly using the ____________________ ?

Select one:

a. Super Keyword 
b. Super Class
c. Inheritance
d. Constructor

Question 8
Correct

Mark 1.00 out of 1.00

These variables are inside a class however outside any method. They come into existence when the class instantiates.

Select one:

a. Variable Types
b. Instance variables 
c. Class variables
d. Local variables

https://trimestral.amaesonline.com/2313A/mod/quiz/review.php?attempt=135705&cmid=5852 3/7
10/19/23, 9:49 AM Prelim Quiz 2: Attempt review

Question 9

Incorrect

Mark 0.00 out of 1.00

Select one:

a. Protected
b. Public
c. Private 
d. No Modifier

Question 10
Correct

Mark 1.00 out of 1.00

Use to define the visibility of classes, methods, and attributes.

Select one:

a. Private
b. Access Modifier 
c. Protected
d. Public

Question 11
Correct

Mark 1.00 out of 1.00

The following are the advantages of Inheritance except.

Select one:

a. Reusability of code
b. Avoids duplicity and data redundancy
c. One superclass can be used for the number of subclasses in a hierarchy
d. Allows you to define one interface 

https://trimestral.amaesonline.com/2313A/mod/quiz/review.php?attempt=135705&cmid=5852 4/7
10/19/23, 9:49 AM Prelim Quiz 2: Attempt review

Question 12

Correct

Mark 1.00 out of 1.00

The super keyword refers to the ______________, immediately above of the calling class in the hierarchy.

Select one:

a. Constructor
b. Super Class 
c. Super Keyword
d. Inheritance

Question 13
Correct

Mark 1.00 out of 1.00

It is a blueprint for objects to follow a specific schema defined in the class.

Select one:

a. Method
b. Object
c. Class 
d. Behavior

Question 14
Correct

Mark 1.00 out of 1.00

Attributes and methods with the access modifier protected can be accessed within your class, by all classes within the same package,
and by all subclasses within the same or other packages.

Select one:

a. No Modifier
b. Public
c. Private
d. Protected 

https://trimestral.amaesonline.com/2313A/mod/quiz/review.php?attempt=135705&cmid=5852 5/7
10/19/23, 9:49 AM Prelim Quiz 2: Attempt review

Question 15

Correct

Mark 1.00 out of 1.00

The same method in child class which is already present in the parent class.

Select one:

a. Object Overriding
b. Method Overriding 
c. Method Overloading
d. Object Overloading

Question 16
Correct

Mark 1.00 out of 1.00

This is the most restrictive and most commonly used access modifier. If you use the this modifier with an attribute or method, it can
only be accessed within the same class.

Select one:

a. Protected
b. Public
c. No Modifier
d. Private 

Question 17
Correct

Mark 1.00 out of 1.00

The process by which one class acquires the properties (data members) and functionalities(methods) of another class.

Select one:

a. Encapsulation
b. Abstraction
c. Polymorphism
d. Inheritance 

https://trimestral.amaesonline.com/2313A/mod/quiz/review.php?attempt=135705&cmid=5852 6/7
10/19/23, 9:49 AM Prelim Quiz 2: Attempt review

Question 18

Correct

Mark 1.00 out of 1.00

This is the least restrictive access modifier. Methods and attributes that use the public modifier can be accessed within your current
class and by all other classes.

Select one:

a. Protected
b. No Modifier
c. Private
d. Public 

Question 19

Correct

Mark 1.00 out of 1.00

One of the OOPs feature that allows us to perform a single action in different ways.

Select one:

a. Encapsulation
b. Polymorphism 
c. Abstraction
d. Inheritance

Question 20
Correct

Mark 1.00 out of 1.00

The class that extends the features of another class is known as _____________?

Select one:

a. Child Class
b. Sub Class
c. Parent Class
d. B and C 

◄ Week 4: Inheritance and Polymorphism - Presentation

Jump to...

PRELIM LAB QUIZ 2 ►

https://trimestral.amaesonline.com/2313A/mod/quiz/review.php?attempt=135705&cmid=5852 7/7

You might also like