Object Oriented Programming MCQs

Page No. 7

Which problem may arise if we use abstract class functions for polymorphism?


aAll classes are converted as abstract class


bDerived class must be of abstract type


cAll the derived classes must implement the undefined functions


dDerived classes can’t redefine the function



Polymorphism is possible in C language.


aTrue


bFalse


cA & B


d None of these


View Answer True

Which among the following can show polymorphism?


aOverloading ||


bOverloading +=


cOverloading <<


dOverloading &&


View Answer Overloading <<

Which among the following can’t be used for polymorphism?


aStatic member functions


bMember functions overloading


cPredefined operator overloading


dConstructor overloading



In case of using abstract class or function overloading, which function is supposed to be called first?


aLocal function


bFunction with highest priority in compiler


cGlobal function


dFunction with lowest priority because it might have been halted since long time, because of low priority



Which type of function among the following shows polymorphism?


aInline function


bVirtual function


cUndefined functions


dClass member functions


View Answer Virtual function

If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called?


aInheritance


bOverloading


cPolymorphism


dOverriding


View Answer Polymorphism

Which among the following is the language which supports classes but not polymorphism?


aSmallTalk


b Java


cC++


dAda


View Answer Ada

What do you call the languages that support classes but not polymorphism?


aClass based language


bProcedure Oriented language


cObject-based language


dIf classes are supported, polymorphism will always be supported


View Answer Object-based language

Which among the following best describes polymorphism?


aIt is the ability for a message/data to be processed in more than one form


bIt is the ability for a message/data to be processed in only 1 form


cIt is the ability for many messages/data to be processed in one way


dIt is the ability for undefined message/data to be processed in at least one way



Goto Page No.

Page 7 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