(A) Instance variable
(B) Static variables
(C) Primitive variables
(D) None of the above
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.
What problem(s) may occur when we copy objects without using deep copy constructor?
(A) Dangling pointer
(B) Memory Leakage(Object is not deleted)
(C) System crash
(D) All of the above
Which part of an object exhibits its state?
(A) Operations
(B) Data
(C) Any public part
(D) Any private part
The return type of a constructor is of?
(A) Character
(B) Double
(C) Integer
(D) No type
We capture the object attributes and behavior in Object Oriented programming using?
(A) Function
(B) Class
(C) Data members
(D) Instances
Which one of the following is not an object association?
(A) Simple Association
(B) Inheritance
(C) Aggregation
(D) Composition
We achieve independence of internal implementation from its external interface through?
(A) Information hiding
(B) Encapsulation
(C) Abstraction
(D) Both encapsulation and information hiding
Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?
(A) The automatic assignment operator is used
(B) The copy constructor is used
(C) Compiler error
(D) Run time error