(A) MyClass
(B) ~MyClass
(C) My~Class
(D) MyClass~
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.
The ability to derive a class from more than one class is called?
(A) Single inheritance
(B) Encapsulation
(C) Multiple inheritance
(D) Polymorphism
Which of the following is the way to extract common behavior and attributes from the given classes and make a separate class of those common behaviors and attributes?
(A) Generalization
(B) Sub-typing
(C) Specialization
(D) Extension
In constant member function the type of this pointer is?
(A) Constant pointer
(B) Constant pointer to object
(C) Constant pointer to class
(D) Constant pointer to constant object
Which one is not a class association?
(A) Inheritance
(B) Simple association
(C) Composition
(D) Aggregation
Data items in a class must be private.
(A) True
(B) False
Which of the following is a weak relationship between two objects?
(A) Composition
(B) Inheritance
(C) Aggregation
(D) None of the above
Which of the following features of OOP is used to derive a class from another?
(A) Polymorphism
(B) Encapsulation
(C) Inheritance
(D) Data hiding