Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

InfyTQ OOPS Concept Quiz 2

Question 1

Time: 00:00:00
Constructors are used to:

To create a sub class.

To create a sub class.

Initialize a newly created object.

Initialize a newly created object.

To build a user interface.

To build a user interface.

Free memory

Free memory

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
Can objects of abstract classes be instantiated?

True

True

False

False

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
An _______ cannot provide any code at all, can provide only the signature.

Abstract class

Abstract class

Interface

Interface

Polymorphism

Polymorphism

none of the above

none of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
Method with the same name or different return type and difference in the parameters either in number or type is known as:

Compile Time Overloading

Compile Time Overloading

Function overloading

Function overloading

Run time overloading

Run time overloading

none of the above

none of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
An object that has more than one form is referred to as:

Interface

Interface

Abstract class

Abstract class

Polymorphism

Polymorphism

Inheritance

Inheritance

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
To call a base class constructor in a derived class, is it needed to call the base class initializer.

True

True

False

False

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
What modifiers are allowed for methods in an Interface? (choose one or more answers)

Public

Public

Private

Private

Abstract

Abstract

none of the above

none of the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
What is the main goal of Object oriented programming?

Ease of evolution.

Ease of evolution.

Monitoring maintenance.

Monitoring maintenance.

Encapsulating code.

Encapsulating code.

Information hiding.

Information hiding.

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
Hiding complexity can also be termed as

Inheritance

Inheritance

Overloading

Overloading

Data Hiding

Data Hiding

Abstraction

Abstraction

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
 Which of the following concepts of OOPS means exposing only necessary information to client?

Encapsulation

Encapsulation

Abstraction

Abstraction

Data hiding

Data hiding

Data binding

Data binding

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Completed

0/0

Accuracy

0%

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Comments