". VdoTips

APPLY LATEST GOVT JOBS

hi
141. When a child class function is called, the compiler looks first for a matching function name in the __________.
(A). class of the object using the function name.
(B). immediate ancestor class.
(C). base class.
(D). descendant class.


142. A function that is called automatically each time an object is destroyed is a ____.
(A). Constructor.
(B). destructor.
(C). destroyer.
(D). terminator.


143. Which of the following concepts means wrapping up of data and functions together?
(A). Abstraction.
(B). Inheritance.
(C). Encapsulation.
(D). Polymorphism.


144. Which of the following functions are performed by the constructor?
(A). Construct a new class.
(B). Construct a new object.
(C). Construct a new function.
(D). Initialize objects.


145. Which of the following is not a type of inheritance?
(A). Multiple.
(B). Multilevel.
(C). Distributive.
(D). Hybrid.