Q.1.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
class Bix
{
      int x; 
    public:
      Bix();
     ~Bix();
      void Show() const;
};
Bix::Bix()
{
    x =}
void Bix::Show() const
{
    cout<< x;
}
int main()
{
    Bix objB;
    objB.Show();
    return
}
Q.2.

What will be the output of the following program?

#include<iostream.h> 
class IndiaBix
{
    int x, y; 
    public:
    IndiaBix(int xx)
    {
        x = ++xx;
    } 
    ~IndiaBix()
    {
        cout<< x - 1 << " ";
    }
    void Display()
    {
        cout<< --x + 1 << " ";
    } 
};
int main()
{
    IndiaBix objBix(5);
    objBix.Display();
    int *p = (int*) &objBix;
    *p =    objBix.Display();
    return
}
Q.3.

What will be the output of the following program?

#include<iostream.h>
class BixBase
{   
    public:
    BixBase()
    {
        cout<< "Base OK. "; 
    }
    virtual ~BixBase()
    {
        cout<< "Base DEL. "; 
    }
};
class BixDerived: public BixBase
{
    public:
    BixDerived()
    { 
        cout<< "Derived OK. "; 
    }
    ~BixDerived()
    { 
        cout<< "Derived DEL. "; 
    }
};
int main()
{
    BixBase *basePtr = new BixDerived();
    delete basePtr;
    return}
Q.4.

What will be the out of the following program?

#include<iostream.h> 
class BixBase
{
    public:
    int x, y; 
    public:
    BixBase(int xx =int yy =    {
        x = xx;
        y = yy; 
    } 
 };
class BixDerived : public BixBase
{
    private:
        BixBase objBase; 
    public:
    BixDerived(int xx, int yy) : BixBase(xx), objBase(yy)
    {
        cout << this->x   << " " 
             << this->y   << " "  
             << objBase.x << " "
             << objBase.y << " ";
    } 
    ~BixDerived()
    { }
};
int main()
{
    BixDerived objDev(22); 
    return}
Q.5.

Which of the following statement is correct about the program given below?

#include<iostream.h> 
class Bix
{
      int x; 
    public:
      Bix();
      void Show() const;
      ~Bix(){}
};
Bix::Bix()
{
    x =}
void Bix::Show() const
{
    cout<< x;
}
int main()
{
    Bix objB;
    objB.Show();
    return
}
Q.6.

What is the technical word for the function ~IndiaBix() defined in the following program?

#include<iostream.h> 
class IndiaBix
{
    int x, y; 
    public:
    IndiaBix(int xx =int yy =)
    {
        x = xx; 
        y = yy;
    }
    void Display()
    {
        cout<< x << " " << y << endl;
    } 
    ~IndiaBix()
    { } 
};
int main()
{
    IndiaBix objBix; 
    objBix.Display(); 
    return}
Q.7.

What will be the output of the following program?

#include<iostream.h> 
class BixBase
{
    public:
    int x, y;
    BixBase(int xx =int yy =    {
        x = ++xx; 
        y = --yy;
    }
    void Display()
    {
        cout<< --y;
    } 
    ~BixBase(){} 
};
class BixDerived : public BixBase
{
    public:
    void Increment()
    {
        y++;
    }
    void Display()
    {
        cout<< --y;
    } 
}; 
int main()
{
    BixDerived objBix;
    objBix.Increment();
    objBix.Display();
    return
}
Q.8.

What will be the out of the following program?

#include<iostream.h> 
class BixBase
{
    public:
    int x, y; 
    public:
    BixBase(int xx =int yy =    {
        x = xx;
        y = yy; 
    } 
 };
class BixDerived : public BixBase
{
    private:
        BixBase objBase; 
    public:
    BixDerived(int xx, int yy) : BixBase(xx), objBase(yy)
    {
        cout << x          << " " 
             << this->x    << " "  
             << BixBase::x << " "     
             << this->objBase.x ;
    } 
    ~BixDerived()
    { }
};
int main()
{
    BixDerived objDev(22); 
    return}
Q.9.

Which of the following statement is correct?

Q.10.

What will be the output of the following program?

#include<iostream.h> 
int val =
class IndiaBix
{
    public: 
    IndiaBix()
    {
        cout<< ++val;
    }
    ~IndiaBix()
    {
        cout<< val--; 
    } 
}; 
int main()
{
    IndiaBix objBixobjBixobjBix    {
        IndiaBix objBix    } 
    return}
Q.11.

Which of the following statement is correct?

Q.12.

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

Q.13.

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

Q.14.

A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.

Q.15.

Which constructor function is designed to copy objects of the same class type?

Q.16.

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

Q.17.

Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class?

Q.18.

A destructor takes __________ arguments.

Q.19.

Destructors __________ for automatic objects if the program terminates with a call to function exit or function abort.

Q.20.

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