(A) True
(B) False
Tag: OOP Mcqs
__ which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.
(A) Friendship is one way only
(B) Friendship is two way only
(C) NO Friendship between classes
(D) Any kind of friendship
Friend functions are __ functions of a class.
(A) Object member
(B) Non-member
(C) Data member
(D) None of the above
__ remain in memory even when all objects of a class have been destroyed.
(A) Instance variable
(B) Static variables
(C) Primitive variables
(D) None of the above
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