(A) Rational_number operator+( Rational_number & obj);
(B) Rational_number operator+(double& obj);
(C) Rational_number operator+(Rational_number &obj, double& num);
(D) operator+(double& obj);
Category: Object Oriented Programming Mcqs
Object Oriented Programming OOP Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Object Oriented Programming Mcqs section will help users to prepare mcqs of OOP for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their Object Oriented programming portion from here.
In OOP a class is an example of __.
(A) Abstract Type
(B) Data Type
(C) User Defined Type
(D) None of the above
A generalization-specialization relation between classes are implemented using?
(A) Friend classes
(B) Data hiding
(C) Encapsulation
(D) Inheritance
An overloaded operator always requires one less argument than its number of operands.
(A) True
(B) False
Which operator can not be overloaded?
(A) The relation operator ( >= )
(B) Assignment operator ( = )
(C) Script operator ( [] )
(D) Conditional operator (? : )
We can use “this” pointer in the constructor in the body and even in the initialization list of any class if we are careful.
(A) True
(B) False
The compiler won‘t object if you overload the * operator to perform division.
(A) True
(B) False
Static variables act like a global variable in the context or scope of the class.
(A) True
(B) False