(A) Specialization
(B) Inheritance
(C) Abstraction
(D) Composition
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 life of sub object is dependant on the life of master class in?
(A) Separation
(B) Composition
(C) Aggregation
(D) None of the above
When a variable is define as static in a class then all object of this class:
(A) Have different copies of this variable
(B) Have same copy of this variable
(C) Can not access this variable
(D) None of the above
Algorithms can only be implemented using STL containers.
(A) True
(B) False
An STL container can not be used to?
(A) hold objects of class employee
(B) store elements in a way that makes them quickly accessible
(C) compile c++ programs
(D) organize the way objects are stored in memory
Which of the following is incorrect line regarding function template?
(A) template
(B) Class
(C) template < class T, class U>
(D) None of the above
When we write a class template the first line must be:
(A) template < class class_name>
(B) template < class data_type>
(C) template < class T >
(D) class class-name()
In case of multiple inheritance a derived class inherits:
(A) Only the public member functions of its base classes
(B) Only the public data members of its base classes
(C) Both public data members and member functions of all its base classes
(D) Data members and member functions of any two base classes