• 1. 
    When an object is passed by reference to constructor, the constructor that is executed is ..........

  • static
  • default
  • inline
  • copy
  • 2. 
    Which of the following is a function that removes the allocated memory of an object?

  • constructor
  • copy constructor
  • destructor
  • member function
  • 3. 
    The name of constructor must be .........

  • same as object name
  • same as one of the member function
  • same as class name
  • none of these
  • 4. 
    Which of the following has no return type and cannot be overloaded?

  • constructor
  • destructor
  • inline function
  • member function
  • 5. 
    When an instance of a class comes into scope, the function that executed is ..........

  • constructor
  • destructor
  • friend
  • inline
  • 6. 
    When a class object goes out to scope, the fucntion that gets executed is ...........

  • constructor
  • destructor
  • friend
  • inline
  • 7. 
    How many destructors a class can have?

  • 4
  • 3
  • 2
  • 1
  • 8. 
    Which of the following do not return any value?

  • friend functions
  • inline fucntions
  • constructor and destructor
  • member function
  • 9. 
    Constructor should be declared under the scope ..........

  • public
  • private
  • protected
  • pointer
  • 10. 
    Which of the following is not true?

  • destructors cannot be overloaded
  • constructors cannot be overloaded
  • constructors is executed automatically
  • constructors can have parameters
  • 11. 
    The constructor without any parameter is called as .........

  • default constructor
  • instance constructor
  • initial constructor
  • parameterized constructor
Report Question
warning
access_time
  Time