(A) Closely
(B) Openly
(C) Loosely
(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.
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
The statement objA=objB; will cause a compiler error if the objects are of different classes.
(A) True
(B) False
__ 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