IGotPlaced

IGotPlaced Social Placement Preparation! Connect and collaborate with candidate like you searching for similar jobs!

04/03/2018

Which of the following statement is correct about constructors?

A. A constructor has a return type.
B. A constructor cannot contain a function call.
C. A constructor has no return type.
D. A constructor has a void return type.

03/03/2018

To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator __________ .

A. destructor
B. delete
C. delete[]
D. kill[]
E. free[

02/03/2018

Which of the following gets called when an object is being created?

A. constructor
B. virtual function
C. destructor
D. main

01/03/2018

A class's __________ is called when an object is destroyed.

A. constructor
B. destructor
C. assignment function
D. copy constructor

01/03/2018

How many times a constructor is called in the life-time of an object?

A. Only once
B. Twice
C. Thrice
D. Depends on the way of creation of object

28/02/2018

How many default constructors per class are possible?

A. Only one
B. Two
C. Three
D. Unlimited

27/02/2018

If the programmer does not explicitly provide a destructor, then which of the following creates an empty destructor?

A. Preprocessor
B. Compiler
C. Linker
D. main() function

26/02/2018

It is a __________ error to pass arguments to a destructor.

A. logical
B. virtual
C. syntax
D. linker

13/02/2018

Which of the following concepts means adding new components to a program as it runs?

A. Data hiding
B. Dynamic typing
C. Dynamic binding
D. Dynamic loading

10/02/2018

Which of the following statements is correct when a class is inherited privately?

A. Public members of the base class become protected members of derived class.
B. Public members of the base class become private members of derived class.
C. Private members of the base class become private members of derived class.
D. Public members of the base class become public members of derived class

09/02/2018

Which of the following can access private data members or member functions of a class?

A. Any function in the program.
B. All global functions in the program.
C. Any member function of that class.
D. Only public member functions of that class

08/02/2018

Which of the following statements is correct when a class is inherited publicly?

A. Public members of the base class become protected members of derived class.
B. Public members of the base class become private members of derived class.
C. Private members of the base class become protected members of derived class.
D. Public members of the base class become public members of derived class

Address

Nungambakkam
Chennai
600034

Alerts

Be the first to know and let us send you an email when IGotPlaced posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to IGotPlaced:

Share