Quiz- 1

Question 1

Time: 00:00:00
Which of the following statements is correct?

Base class pointer cannot point to derived class.

Base class pointer cannot point to derived class.

Derived class pointer cannot point to base class.

Derived class pointer cannot point to base class.

Pointer to derived class cannot be created.

Pointer to derived class cannot be created.

Pointer to base class cannot be created.

Pointer to base class cannot be created.

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

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
How many types of polymorphisms are supported by C++?

1

1

2

2

3

3

4

4

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 correctly describes overloading of functions?

Virtual polymorphism

Virtual polymorphism

Transient polymorphism

Transient polymorphism

Ad-hoc polymorphism

Ad-hoc polymorphism

Pseudo polymorphism

Pseudo polymorphism

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 correct about function overloading?

The types of arguments are different.

The types of arguments are different.

The order of argument is different.

The order of argument is different.

The number of argument is same.

The number of argument is same.

Both A and B.

Both A and B.

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 concepts means waiting until runtime to determine which function to call?

Data hiding

Data hiding

Dynamic casting

Dynamic casting

Dynamic binding

Dynamic binding

Dynamic loading

Dynamic loading

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 used with the keyword virtual?

class

class

member functions

member functions

constructor

constructor

destructor

destructor

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 one of the following options is correct about the statement is given below? The compiler checks the type of reference in the object and not the type of object.

Inheritance

Inheritance

Polymorphism

Polymorphism

Abstraction

Abstraction

Encapsulation

Encapsulation

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 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 9

Time: 00:00:00
Which of the following statements regarding inline functions is correct?

It speeds up execution.

It speeds up execution.

It slows down execution.

It slows down execution.

It increases the code size.

It increases the code size.

Both A and C.

Both A and C.

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 one of the following options is correct?

Friend function can access public data members of the class.

Friend function can access public data members of the class.

Friend function can access protected data members of the class.

Friend function can access protected data members of the class.

Friend function can access private data members of the class.

Friend function can access private data members of the class.

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

["0","40","60","80","100"]
["Need more practice! \r\n","Keep trying! \r\n","Not bad! \r\n","Good work! \r\n","Perfect! \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/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