Object Oriented Programming MCQs

Page No. 41

If a class is being derived using more than two base classes, which inheritance will be used?


aSingle

✖


bMulti-level

✖


cHierarchical

✖


dMultiple

✓


View Answer Multiple

How many derived class can a single base class have?


a1

✖


b2

✖


c3

✖


dAs many are required

✓


View Answer As many are required

How many types of inheritance are supported in C++ for deriving a class?


a1

✖


b2

✖


c3

✓


d4

✖


View Answer 3

Which members can never be accessed in derived class from the base class?


aPrivate

✖


bProtected

✖


cPublic

✖


dAll except private

✓


View Answer All except private

If there is a derived class in a program, how many classes must be in that program?


a1

✖


b 2

✓


c3

✖


d4

✖


View Answer 2

Which among the following is inherited by a derived class from base class?


aData members only

✖


bMember functions only

✖


cAll the members except private members

✓


dAll the members of base class

✖



Which among the following is best definition of a derived class?


aA child class

✖


b A class which inherits one or more classes

✓


cA class with keyword derived

✖


dA class with more than one constructor

✖



Which among the following is the most abstract form of class?


aCars

✓


bBMW cars

✖


cBig cars

✖


dSmall cars

✖


View Answer Cars

Why do classes use mutator methods?


aAllows client to modify the program

✖


bAllows client to modify/write the private members

✓


cAllows servers to access all the private data

✖


d Allows servers to access only protected members

✖



Why do classes use accessor methods?


aTo make public data accessible to client

✖


bTo make public data private to client

✖


cTo make private data public for whole program

✖


d To make private data accessible to the client

✓



Goto Page No.

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