Question: The members of a class that can be accessed without creating the object of the class is called?
- 1. Private member
- 2. Public member
- 3. Data member
- 4. Static
Question: A class can be identified from a statement by?
- 1. Noun
- 2. Pronoun
- 3. Verb
- 4. Adverb
Question: Identify which of the following overloaded operator function‘s declaration is appropriate for the given call? Rational_number_1 + 2.325 Where Rational_number_1 is an object of user defined class Rational_number?
- 1. Rational_number operator+( Rational_number & obj);
- 2. Rational_number operator+(double& obj);
- 3. Rational_number operator+(Rational_number &obj, double& num);
- 4. operator+(double& obj);
Question: In OOP a class is an example of __.
- 1. Abstract Type
- 2. Data Type
- 3. User Defined Type
- 4. None of the above
Question: A generalization-specialization relation between classes are implemented using?
- 1. Friend classes
- 2. Data hiding
- 3. Encapsulation
- 4. Inheritance
Question: Which operator can not be overloaded?
- 1. The relation operator ( >= )
- 2. Assignment operator ( = )
- 3. Script operator ( [] )
- 4. Conditional operator (? : )
Question: Using encapsulation we can achieve?
- 1. Information hiding
- 2. Least interdependencies among modules
- 3. Implementation independenc
- 4. All of given options
Question: A member function having the same name as that of a class and a ~ sign with it is called?
- 1. Getter
- 2. Constructor
- 3. Destructor
- 4. Setter
Question: We can get only one unique value which can be used by all the objects of that class by the use of?
- 1. Static variables
- 2. Dynamic variables
- 3. Instance variables
- 4. Data members
Question: Suppose obj1 and obj2 are two objects of a user defined class A. An + operator is overloaded to add obj1 and obj2 using the function call obj1+obj2. Identify the correct function prototype against the given call?
- 1. A operator + ( A &obj);
- 2. int + operator();
- 3. int operator (plus) ();
- 4. A operator(A &obj3);