(A) New
(B) int
(C) object
(D) none of the given
Tag: OOP Mcqs
Object can be declared constant with the use of Constant keyword?
(A) true
(B) false
(C) NA
(D) NA
If we are create array of objects through new operator, then?
(A) We can call overloaded constructor through new
(B) We can‘t call overloaded constructor through new
(C) We can call default constructor through new
(D) None of the given
__ is creating objects of one class inside another class.
(A) Association
(B) Composition
(C) Aggregation
(D) Inheritance
Unary operators and assignment operator are right associative?
(A) true
(B) false
(C) NA
(D) NA
The sub-object‘s life is not dependent on the life of master class in __.
(A) Composition
(B) Aggregation
(C) Separation
(D) non of the given
Memory is allocated to non static members only, when?
(A) Class is created
(B) Object is defined
(C) Object is initialized
(D) Object is created
Class is not a mechanism to create objects and define user data types?
(A) true
(B) false
(C) NA
(D) NA