(A) True
(B) False
Tag: OOP Mcqs
Which of the following is a weak relationship between two objects?
(A) Composition
(B) Inheritance
(C) Aggregation
(D) None of the above
Which of the following features of OOP is used to derive a class from another?
(A) Polymorphism
(B) Encapsulation
(C) Inheritance
(D) Data hiding
A good model is __ related to a real life problem.
(A) Closely
(B) Openly
(C) Loosely
(D) None of the above
Information hiding can be achieved through?
(A) Encapsulation, Abstraction
(B) Encapsulation, Inheritance
(C) Encapsulation, Polymorphism
(D) Overloading
A C++ class is similar to?
(A) Header file
(B) Structure
(C) Library file
(D) None of the above
In object orientated programming, a class of objects cans __ properties from another class of objects.
(A) Utilize
(B) Borrow
(C) Inherit
(D) Adopt
The technique in which we visualize our programming problems according to real life‘s problems is called?
(A) Object oriented Programming
(B) Structured programming
(C) Procedural programming
(D) None of the above