Object Oriented Programming MCQs

Page No. 6

The feature by which one object can interact with another object is _____________


aData transfer


bData Binding


cMessage Passing


dMessage reading


View Answer Message Passing

How many basic features of OOP are required for a programming language to be purely OOP?


a7


b6


c5


d4


View Answer 7

Which feature may be violated if we don’t use classes in a program?


aInheritance can’t be implemented


bObject must be used is violated


cEncapsulation only is violated


dBasically all the features of OOP gets violated



Which among the following doesn’t come under OOP concept?


aPlatform independent


bData binding


cMessage passing


dData hiding


View Answer Platform independent

Which of the following is not a feature of pure OOP?


aClasses must be used


bInheritance


cData may/may not be declared using object


dFunctions Overloading



If different properties and functions of a real world entity is grouped or embedded into a single element, what is it called in OOP language?


a Inheritance


bPolymorphism


cAbstraction


dEncapsulation


View Answer Encapsulation

If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?


aEncapsulation


bInheritance


cPolymorphism


dAbstraction


View Answer Polymorphism

Which feature of OOP indicates code reusability?


aEncapsulation


bInheritance


cAbstraction


dPolymorphism


View Answer Inheritance

If 2 classes derive one base class and redefine a function of base class, also overload some operators inside class body. Among these two things of function and operator overloading, where is polymorphism used?


a Function overloading only


bOperator overloading only


cBoth of these are using polymorphism


dEither function overloading or operator overloading because polymorphism can be applied only once in a program



Which among the following is not true for polymorphism?


a) It is feature of OOP


bEase in readability of program


cHelps in redefining the same functionality


dIncreases overhead of function definition always



Goto Page No.

Page 6 of 93

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan