TCS OOPS Quiz-2

Question 1

Time: 00:00:00
Which Keyword from the following is used to inherit properties from one class into another?

alll the below

alll the below

subclasses

subclasses

native

native

extends

extends

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

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
Which of the following supports the concept of hierarchical classification?

polymorphism

polymorphism

Encapsulation

Encapsulation

Abstraction

Abstraction

Inheritance

Inheritance

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

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
The process of building new classes from existing one is called ______.

Polymorphism

Polymorphism

Encapsulation

Encapsulation

Abstraction

Abstraction

Inheritance

Inheritance

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

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
Which of the following is not a type of inheritance?

Multiple

Multiple

Multilevel

Multilevel

Distributive

Distributive

Hierarchical

Hierarchical

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

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
Which of the following are available only in the class hierarchy chain?

Public Data Members

Public Data Members

Private Data Members

Private Data Members

Protected Data Members

Protected Data Members

Member Functions

Member Functions

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Which of the following cannot be inherited?

Friend

Friend

Destructor

Destructor

Static

Static

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

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
Which type of inheritance needs a virtual function:

All the above

All the above

Multi level inheritance

Multi level inheritance

Multiple Inheritance

Multiple Inheritance

Hybrid Inhertance

Hybrid Inhertance

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

Please login to submit your explanation

Start

Question 8

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

Encapsulation

Encapsulation

Abstraction

Abstraction

Data binding

Data binding

Data Hiding

Data Hiding

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

Please login to submit your explanation

C is correct.

Start

Question 9

Time: 00:00:00
Which type of class allows only one object of it to be created?

Virtual class

Virtual class

Abstract class

Abstract class

Singleton class

Singleton class

Friend class

Friend class

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

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
What makes a class abstract?

By making all member functions constant.

By making all member functions constant.

By making at least one member function as pure virtual function.

By making at least one member function as pure virtual function.

By declaring it abstract using the static keyword.

By declaring it abstract using the static keyword.

By declaring it abstract using the virtual keyword.

By declaring it abstract using the virtual keyword.

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

Please login to submit your explanation

Class with pure virtual function called as abstract class

Start

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

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%

Completed

0/0

Accuracy

0%

Comments

One comment on “TCS OOPS Quiz-2”