(A) True
(B) False
Tag: Object Oriented Programming Mcqs
Which of the following causes run time binding?
(A) Declaring object of abstract class
(B) Declaring pointer of abstract class
(C) Declaring overridden methods as non-virtual
(D) None of the above
A template argument is preceded by the keyword?
(A) Vector
(B) Class
(C) Template
(D) Type
In Private __ only member functions and friend classes or functions of a derived class can convert pointer or reference of derived object to that of parent object.
(A) Specialization
(B) Inheritance
(C) Abstraction
(D) Composition
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