351.Consider the code below, class class1{ private: void func1(); }; class class2 : private class1 { }; Function func1 of class1 is ____ in class2,
- public
- protected
- private
- none of the given options
352.What will be the purpose of a _____ function call is determined at run time.
- instance
- virtual
- operator
- none of given
353.Consider the following statements: 1) int iArray[5]; 2) int *pArr = iArray;
- These statements will compile successfully
- Error in first statement
- Error in second statement
- None of given options
354.Consider the code below, class class1{ private: int i; }; class class2 : private class1 { }; Then int member i of class1 is ____ in class2,
- public
- protected
- private
- none of the given
355.If there is a pointer, p, to objects of a base class, and it contains the address of an object of a derived class, and both classes contain a virtual member function, ding(), then the statement p->ding(); will cause the version of ding() in the ___ class to be executed.
- derived
- virtual base
- implemented
356.The template class may inherit from another class template.
- True
- False
357.Derived class can inherit from public base class as well as private and protected to base classes
- True
- False
358.Two functions with same names, parameters and return type can exist in,
- Function overloading
- Function overriding
- Operator overloading
- None
359.Consider the code below, class class1{ private: int i; }; class class2 : public class1 { }; Then int member i of class1 is ____ in class2,
- public
- protected
- private
- none of the given
360.Purpose of a _____ function call is determined at run time.
- virtual
- instance
- operator
- none
361.A class template may inherit from another class template.
- True
- False
362.A function call is resolved at run-time in_________
- non-virtual member function
- virtual member function
- Both non-virtual member and virtual member function.
- None of given
363.A class hierarchy
- shows the same relationships as an organization chart.
- describes “has a” relationships.
- describes “is a kind of” relationships.
- shows the same relationships as a family tree.
364.Consider the code below, class class1{public: int i; }; class class2 : public class1 { }; Then int member i of class1 is ____ in class2,
- public
- protected
- private
- none of the given options
365.Consider the code below, class c1{ }; class c2 : public c1 { }; class c3 : public c2 { }; Then c1 is,
- Direct base class of c3
- Direct child class of c3
- Direct base class of c2
- Direct child class of c2
366.A class can inherit from more then one class is called.
- Simple inheritance
- Multiple inheritances
- Single inheritance
- Double inheritance
367.template<> class Vector void** p; //…. void*& operator[] ((int i); };
- This specialization can then be used as the common implimentation for all Vectors of pointers.
- This spcialization can then be used as the all type implimentation for one type classes.
- This specialization can then be used double type pointers.
- This specialization should be used for Vectors of all type int types.
368.Consider the code below, class class1{ public: int i; }; class class2 : protected class1 { }; Then int member i of class1 is ____ in class2,
- public
- protected
- private
- none of the given options
369.Consider the code below, class class1{ private: void func1(); }; class class2 : public class1 { }; Function func1 of class1 is ____ in class2,
- public
- protected
- private
- none of the given options
370.Templates automatically create different versions of a function?
- False
- True
371.In OOP the Binding means that target function for a call is selected at run time
- Automatic
- Dynamic
- Static
- Dramatic
372.When we create objects, then space is allocated to:
- Member function
- Access specifies
- Data member
- None of given
373.The copy constructor will be its form?
- True
- False
374.Which features of OOP is used to deal with only relevant details?
- Abstraction
- Object
- Information hiding
- none
375.___________ Binding means that targets function for a call is selected at compile time.
- Static
- Dynamic
- Automatic
- None of given
376.A Class hierarchy
- What will be same relationships as an organization chart
- Describes “has a” relationships.
- Describes “is a kind of” relationships.
- Shows the same relationships as a family tree
377.We can make virtual by preceding the function header with keyword “Inline”.
- True
- False
378.The illegal way to make objects of one class members of another class.
- True
- false
379.How compiler will search the Resolution order?
- Generic Template
- Partial Specification
- Complete Specification
- Ordinary function
380.Derived class can inherit from public base class as well as private and protected base classes
- True
- False
381.Which line will produce error. Class phone: Private Transmit, private Receiver { } 1.int main () 2. { 3.phone obj; 4.Tranmit*obj1 = &obj;
- 5.Received obj2 = &obj; 6.}
- 4th line will produce error
- 3rd and 4th line will produce error.
- 5th line will produce error
- 3rd line will produce error
382.What will the procedure for the development of reusable software relate to ____________.
- Structure programming
- Procedural programming
- Generic programming
- None of the given
383.The argument of template preceded by the keyword__________.
- Vector
- Class
- Template
- Type*
384.Friends are used exactly the same for template and non-template classes.
- True
- False
385.A function template must have a parameter
- True
- False
386.Child class will call constructor of its,
- Direct base class
- Indirect base class
- Both direct and indirect base classes
- None of these.
387. Which statement will be true for concrete class?
- It implements virtual concept.
- It cannot be instantiated
- None of given
- It can be instantiated
388.A class D can be derived from a class C, which is derived from a class B, which is derived from a class A
- True
- False
389.The information of derived class to a base class requires fundamental changes to the base class.
- False
- True
390.A Class or class template can have member ___________ that are themselves templates.
- Variable
- Function
- Objects
- None of given
391.Which will be the task of generic programming?
- Categorize the abstractions in a domain into concepts
- Implement generic algorithms based on the concepts
- Build concrete models of the concepts
- All of given
392.The default inheritance mode will be?
- Protected Inheritance
- Private Inheritance
- None of these option
- Public inheritance
393. If there is a pointer, p, to objects of a base class, and it contains the address of an object of a derived class, and both classes contain a virtual member function, ding(), then the statement p->ding(); will cause the version of ding() in the __________class to be executed.
- Base
- Derived
- Virtual
- Implemented
394.Sender of the message does not need to know the exact class of receiver in________.
- Abstraction
- Polymorphism
- Inheritance
- none of the given
395.___ is a relationship.
- Polymorphism
- abstraction
- Inheritance
- encapsulation
396. which condition will be satisfying of polymorphism.
- Carbon
- Diamond
- Coal
- all of the given
397. A generalization-specialization relation between classes are implemented using
- data hiding
- friend classes
- encapsulation
- inheritance
398. In order to free the memory occupied by the object, we use?
- Constructor
- Destructor
- Shallow Copy
- Deep Copy
399. Which of the following is not an example of multiple inheritances?
- Mermaid
- Woman
- None of the given
- Amphibious Vehicle
400.A generic class showing all the common attributes and a behavior of other classes represents a very important feature in OOP called
- Inheritance
- Polymorphism
- Encapsulation
- Abstraction