We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
I) Multiple Choice Questions 10 X 1/2= 5
1. Which constructor does not initialize any data member? ( )
a) Dummy b) Default c) Copy d) Parameterized 2.Which constructor does not take any arguments? ( ) a) Dummy b) Default c) Copy d) Parameterized 3. Which type of constructor is similar to a constructor that has all default arguments?( ) a) Dummy b) Default c) Copy d) None 4. If no access specifier is written, by default the class will be derived in which mode?( ) a) public b) private c) protected d) none 5. If class A uses features of class B, Then A is called the ______class and B is called the _________class ( ) a) derived, base b) base, derived c) base, base d) derived, derived 6. In private inheritance, public members of the base class become ____members of the derived class ( ) a) public b) private c) protected d) none 7. A private member can be accessed in _____________ ( ) a) same class b) friend class c) friend function d) all of these 8. Objects of which class cannot be created? ( ) a) base class b) derived class c) abstract class d) all of these 9. If a class has one or more virtual functions, then that class should also have a ( ) a) constructor b) destructor c) pure virtual function d) none 10. In multi-level inheritance, the middle class acts as________ ( ) a) base class b) derived class c) both of these d) none II) Fill in the blanks 10 X 1/2= 5 1. ______________ can be used to initialize data members at the time of object creation. 2. __________ is the first member function to be executed when an object of that class is created 3. copy constructor takes a ______________ to an object of the same class as an argument. 4. overloaded constructors differ in their ___________________ 5. Name of the destructor is preceded by the _____________ symbol. 6. The technique of creating a new class from an existing class is called _________________. 7.The visibility mode can be ______________, _______________ or _________________. 8. _____________ functions are used to implement dynamic binding. 9.A function is declared as virtual in the _______________ class. 10._________________ functions are do-nothing functions. III) Answer the following questions. 5X1=5 1. What is inheritance?
2. What is constructor?
3.What is destructor?
4.Explain about parameterized constructor?
5. Explain about multiple constructor?
IV) Answer any 1 of the following assignment questions. 5X1=5
1. Explain about exception handling mechanism? 2. Explain about filestream?