301. Which operator will not take any argument if it will be overloaded?
- /
- –
- +
- None of the given
302. Which type of relationship exists between fan and wings?
- Aggregation
- Association
- Composition
- Inherit
303. Which type of relationship exists between “Account” class and “Saving Account” class?
- Inheritance
- Composition
- Aggregation
304. Select correct inheritance relationship between “Nationality” class and “Citizen” class. “Nationality” is parent class
- while “Citizen” is child class.
- class Citizen: public Nationality
- class Citizen: public Nationality
- class Nationality: public Citizen
- class Nationality: public Citizen
305. How we will initialize an array of objects, only _____________ will be called
- Overloaded Constructor
- Default Object
- Default Constructor
- None of the above
306. Data items in a class that will be private.
- TRUE
- FALSE
- False
- both data and functions can be private or public.
307.The compiler to substitute the code within the function definition for every instance of a function call will be?
- virtual
- inline
- instance
- none of the given
308. Objects will be do communicate with each other through ________
- Messages
- Data members
- Both of above
- None of the above
- Messages.
309. Which will not be the feature of object-oriented programming?
- Classes and Objects
- Exception handling
- Inheritance
- Polymorphism
- Exception handling.
310.The member function of public will be exposed by a class is called surface
- TRUE
- FALSE
- False
311. If class parent will support all the operations of class children, then class parent will:
- Class parent is behaviorally compatible with class Children
- Class Parentis behaviorally incompatible with class Children
- Class Parent is independent of class Children
- None of the given
312.Class A is behaviorally compatible with class B. which type of relation exists between fan and wings in this sentence?
- Aggregation
- Association
- Generalization
- Composition
- Composition
313.What will be about the sub-typing in case of inheritance?
- In sub-typing a new class is derived from existing where the derived class shows some extended behavior of its parent.
- In sub-typing a new class is derived from existing which is a restricted form of its parent class.
- In sub-typing a class is derived from existing one where the derived class should be abstract.
- None of the given
- In sub-typing a new class is derived from existing where the derived class shows some extended behavior of its parent.
314. Which type of mechanism for create objects and will define user data types.
- TRUE
- FALSE
- FALSE.
315. Which of will not be an integral part of an object?
- state
- behavior
- Protected data members
- All of given
- All of given.
315.A template will provide convenient way to make a family of.
- variables and data members
- classes and exceptions
- programs and algorithms
- functions and classes
316.A class template will be inheriting from another class template.
- True
- False
317.The function call will be determined at run time.
- instance
- virtual
- operator
- none of given
318.The class hierarchy What will be for “is a kind of” relationships?
- shows the same relationships as an organization chart.
- describes “has a” relationships.
- shows the same relationships as a family tree.
- none
319.The sender of message will not to know the exact class of receiver in______.
- Abstraction
- Polymorphism
- Inheritance
- none of the given
320.A function call will be at run-time in_________ .
- non-virtual member function
- virtual member function
- Both non-virtual member and virtual member function.
- None of given
321.The virtual table explicitly.
- True
- False
322.Binding means that target function for a call that is selected at compile time.
- Static
- Dynamic
- Automatic
- None of given
323.The function will be call at run time.
- instance
- virtual
- operator
- none of given
324.Which line will produce error. Class phone: private Transmit, private Receiver { } 1. int main() 2. { 3. phone obj; 4. Transmit* obj1 = &obj; 5.
- Received obj2 = &obj; 6.}.
- 3rd line will produce error
- 4th line will produce error
- 3rd and 4th line will produce error.
325.The following statements: 1) intArray[5]; 2) int *Person Array= arrays;
- These statements will compile successfully
- Error in first statement
- Error in second statement
- None of given options
326.What will the procedure of reusable software relate to________.
- Structure program
- generic programming
- procedural programming
- None of the given
327.Function template will have a parameter.
- True
- False
328.The default inheritance mode will be?
- Public inheritance
- Protected inheritance
- Private inheritance
- None of these options
329.With same names of the two function, parameters and return type can exist in,
- Function overloading
- Function overriding
- Operator overloading
- None of these options
330.Consider the code below, class A {}; class B: public A { }; class C: public B { }; Then B is,
- Direct base class of C
- Direct base class of A
- Direct child class of C
- None of these
331.Virtual functions will allow you to?
- create an array of type pointer-to-base class that can hold pointers to derived classes.
- create functions that can never be accessed.
- group objects of different classes so they can all be accessed by the same function code.
- use the same function call to execute member functions of objects from different classes.
332.The virtual table can be done explicitly.
- True
- False
333.The first line definition of Template Class must be:
- template <type name T>
- type name <template T>
- Template Class <Class Name>
- Class <Template T>
334.Consider the following statements: 1) int arrays [5]; 2) int *parry = arrays’;
- These statements will compile successfully
- Error in first statement
- Error in second statement
- None of given options
335. The dynamic binding and polymorphism will be achieved when member function will be __.
- private
- public
- virtual
- inline
336. The depended function of template will be use where code and behavior will be identical.
- True
- False
337.Consider the code below, class class1{protected: int i;}; class class2 : private class1 { }; Then int member i of class1 is ____ in class2,
- public
- protected
- private
- none of the given options
338.The specialization can be ?
- Replace child class with its base class
- Replace base class with its child class
- Replace both child and base classes interchangeably
- None of the given options
339.Consider the code below, class class X{ public: void func1(); }; class class Y : public class X { }; Function func1 of class X is ____ in class2,
- public
- protected
- private
- none of the given options
340.The illegal way to make objects of one class members of another class.
- True
- False
341.An abstract class is useful when no classes should be derived from it.
- there are multiple paths from one derived class to another.
- be instantiated from its.
- you want to defer the declaration of the class.
342.In resolution order compiler search firstly _______.
- The Generic Class?
- ordinary function template
- Partial Specialization
- Complete Specialization
343.template<> class Vector {void** p; //…. void*& operator[] ((int i); };
- This specialization can then be used double type pointers
- This specialization can then be used as the common implementation for all Vectors of pointers.
- This specialization can then be used as the alltype implementation for one type classes.
- This specialization should be used for Vectors of all type int types.
344.The derived class pointer can be assigned to base class pointer in private inheritance?
- Main function
- In derived class member and friend functions
- In base class member and friend functions
- D. None of the given options
345.Which statement will be true for concrete class?
- it implements an virtual concept.
- it cannot be instantiated
- none of given
- it can be instantiated
346. The function call will be determined at run time.
- virtual
- operator
- none of given
347. What will be the pattern of specialization after the name data types?
- meta types
- virtual types
- pointers type
348.C++ dynamic binding and polymorphism will be achieved when member function will be __.
- private
- public
- virtual
- inline
349.Consider the code below, class class1 {protected: void func1(); }; class class2 : public class1 { }; Function func1 of class1 is ____ in class2,
- public
- protected
- private
- none of the given options
350.Consider the code below, class class1{ protected: int i; }; class class2 : protected class1 { }; Then int member i of class1 is ____ in class2,
- public
- private
- protected
- none of the given