Question 1

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

Question 2

Time: 00:00:00
Which is TRUE about polymorphism related to the compiler from the below options?

Compiler is a check type of object, not a type of reference.  

Compiler is a check type of object, not a type of reference.  

Compiler does not check the type of reference nor the type of object  

Compiler does not check the type of reference nor the type of object  

Compiler is a check type of reference, not a type of object

Compiler is a check type of reference, not a type of object

Compiler is both a check type of object and a type of reference

Compiler is both a check type of object and a type of reference

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

Please login to submit your explanation

Question 3

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

PrepInsta User

Data hiding

Question 4

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

All of them

All of them

Multi Level Inheritance

Multi Level Inheritance

Multiple Inheritance

Multiple Inheritance

Hybrid Inheritance

Hybrid Inheritance

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

Please login to submit your explanation

Question 5

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

Friend

Friend

static function

static function

Destructor

Destructor

Constructor

Constructor

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

Please login to submit your explanation

PrepInsta User

Friendship cannot be inherited, friends of base class do not become friends of derived class.

Question 6

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 Function

Member Function

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

Please login to submit your explanation

Question 7

Time: 00:00:00

The name of the method that might work differently depending on what argument is passed to it is called ______

Method overriding

Method overriding

Inheritance

Inheritance

Method overloading  

Method overloading  

abstraction

abstraction

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

Please login to submit your explanation

Question 8

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

Polymorphism

Polymorphism

Structure

Structure

Cascading

Cascading

Inheritance

Inheritance

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

Please login to submit your explanation

Question 9

Time: 00:00:00

Mr. jay is new to OOPs concept. He is trying to understand it in real time. So, he gets up from his couch and the open the main door using the door lock. Which oops concept best describe the use of the door lock where users only know how to operate the door lock but unaware of its internal mechanism?

Data abstraction  

Data abstraction  

Inheritance  

Inheritance  

Class

Class

Polymorphism

Polymorphism

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

Please login to submit your explanation

Question 10

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

all the below mentioned

all the below mentioned

native

native

subclasses

subclasses

extends

extends

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

Please login to submit your explanation

["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"]

Buy TCS NQT Paid Materials

Paid Materials TCS NQT

Join TCS NQT Online Classes

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%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Comments