Quiz-1

Question 1

Time: 00:00:00
In c++ how are protected members of a base class accessed in derived class when inherited privately

Publicly

Publicly

Protectively

Protectively

Privately

Privately

non inherited

non inherited

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 statements is correct when a class is inherited publicly?

Public members of the base class become public members of derived class

Public members of the base class become public members of derived class

Using single interface for general class of actions.

Using single interface for general class of actions.

Reduce Complexity

Reduce Complexity

All above

All above

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 access specifies is used in a class definition by default?

Public

Public

Private

Private

Static

Static

None

None

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 can access private data members or member functions of a class?

Any member function of that class can easily access the data members.

Any member function of that class can easily access the data members.

Any member of that class can easily access the data members.

Any member of that class can easily access the data members.

no one

no one

All of the above

All 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
Which of the following statements about virtual base classes is correct?

Public members of the base class become protected members of derived class.

Public members of the base class become protected members of derived class.

Public members of the base class become private members of derived class.

Public members of the base class become private members of derived class.

Private members of the base class become protected members of derived class.

Private members of the base class become protected members of derived class.

It is used to avoid multiple copies of base class in derived class.

It is used to avoid multiple copies of base class in derived class.

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
State whether the following statements about inheritance are True or False.
i) A public member of a class can be accessed by its own objects using the dot operator.
ii) While inheriting, the private members of the base class will never become the members of its derived class.

true,false

true,false

False,true

False,true

True, True

True, True

false, false

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
Encapsulation is?

Any function in the program.

Any function in the program.

making private variables

making private variables

wrapping up of data

wrapping up of data

data binding

data binding

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 means wrapping up of data and functions together?

Abstraction

Abstraction

encapsulation

encapsulation

Data hiding

Data hiding

polymorphism

polymorphism

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","Keep trying! \r\n \r\n","Not bad! \r\n \r\n","Good work! \r\n \r\n","Perfect! \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/8

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