(A) True
(B) False
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.
Using encapsulation we can achieve?
(A) Information hiding
(B) Least interdependencies among modules
(C) Implementation independenc
(D) All of given options
A member function having the same name as that of a class and a ~ sign with it is called?
(A) Getter
(B) Constructor
(C) Destructor
(D) Setter
We can get only one unique value which can be used by all the objects of that class by the use of?
(A) Static variables
(B) Dynamic variables
(C) Instance variables
(D) Data members
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?
(A) A operator + ( A &obj);
(B) int + operator();
(C) int operator (plus) ();
(D) A operator(A &obj3);
The keyword that is used that the variable can not change state?
(A) const
(B) static
(C) friend
(D) private
Assume a class C with objects obj1, obj2, and obj3. For the statement obj3 = obj1 – obj2 to work correctly, if the overloaded – operator must?
(A) Take two arguments
(B) Create a named temporary object
(C) Return a value
(D) Take four arguments
Which of the following operators always takes no argument if overloaded?
(A) –
(B) /
(C) +
(D) ++