Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C++ - QUESTIONS : PART 28

In a class, pure virtual functions in C++ is used

To create an interface

To make a class abstract

To force derived class to implement the pure virtual function

All the above
SHOW ANSWER

 Which public member of a base class cannot be inherited?

Constructor

Destructor

Both A & B

Only B
SHOW ANSWER

How many VPTR is created internally for a base class and a derived class

0

1

2

3

SHOW ANSWER

Which statements are true about an abstract class

Abstract class has at least one pure virtual function.

ointer for an abstract class can be created

Object of an abstract class cannot be created.

All are correct.
SHOW ANSWER

Run time polymorphism in C++ Program is

New and delete operator overloading

++ and – – operator overloading

:: operator overloading

None
SHOW ANSWER

Run time binding is related to

Function overriding

Operator overloading

A & B

None
SHOW ANSWER

 Which function cannot be overloaded in C++

Constructor

Class destructor

Both a & b

None
SHOW ANSWER

Operators can be overloaded in C++ is/are

New

Delete

++

All can be overloaded
SHOW ANSWER

Polymorphism Means

Many Means Many Forms

One Mean Many Forms

Both a and b

None of these
SHOW ANSWER

Polymorphism is achieved by

Operator Overloading

Virtual Functions

Function Overloading

All
SHOW ANSWER

Virtual Function with initialization 0 is called as

Pure virtual function

Abstract function

Inline function

Function overloading
SHOW ANSWER

Virtual function use the __ keyword

Class

Struct

Union

Virtual
SHOW ANSWER

Class with pure virtual function is called

Empty Class

Local Class

Nested Class

Abstract Class
SHOW ANSWER

Usually a pure virtual function

Has complete function body.

 Will never be called.

Will be called only to delete an object.

 Is defined only in derived class.
SHOW ANSWER

Runtime Polymorphism is achieved by ______

Friend function

Virtual function

Operator overloading

Function overloading
SHOW ANSWER

The keyword friend does not appear in

The class allowing access to another class.

The class desiring access to another class.

The private section of a class.

The public section of a class
SHOW ANSWER

Use of virtual functions implies

Overloading.

Overriding.

Static binding.

Dynamic binding
SHOW ANSWER

It is possible to declare as a friend

A member function

A global function

A class

all of the above
SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in