TCS NQT OOPS Quiz- 2

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

Start

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

Start

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

Data hiding

Start

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

Start

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

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

Start

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

Start

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

Start

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

Start

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

Start

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

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

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%

Completed

0/10

Accuracy

0%

Get Prepinsta Prime

Get all 200+ courses offered by Prepinsta

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

Follow us on our Media Handles, we post out OffCampus drives on our Instagram, Telegram, Discord, Whatsdapp etc.

Get Hiring Updates
Amazon,Google,Delottie & 30+companies are hiring ! Get hiring Updates right in your inbox from PrepInsta

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.

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.

Get PrepInsta Prime Subscription

Get access to all the courses that PrepInsta offers, check the out below -

Companies

TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies

Programming

Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects

Skills

Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects

Comments