Object Oriented Programming MCQs

Page No. 48

How many abstract classes can be used in multilevel inheritance?


aOnly 1


bOnly 2


c At least one less than number of levels


d Can’t be used



Can abstract classes be used in multilevel inheritance?


a Yes, always


bYes, only one abstract class


cNo, abstract class doesn’t have constructors


d No, never


View Answer Yes, always

All the classes must have all the members declared private to implement multilevel inheritance.


aTrue


b) False


cA & B


d None of the above


View Answer ) False

In multilevel inheritance one class inherits _______________


aOnly one class


bMore than one class


cAt least one class


dAs many classes as required


View Answer Only one class

What is the minimum number of levels for a implementing multilevel inheritance?


a1


b 2


c3


d4


View Answer 3

Multilevel inheritance allows _________________ in the program.


aOnly 7 levels of inheritance


bAt least 7 levels of inheritance


cAt most 16 levels of inheritance


dAs many levels of inheritance as required



If all the classes use private inheritance in multilevel inheritance then ______________


aIt will not be called multilevel inheritance


bEach class can access only non-private members of its parent


cEach subsequent class can access all members of previous level parent classes


dNone of the members will be available to any other class



Which Class is having highest degree of abstraction in multilevel inheritance of 5 levels?


aClass at 1st level


bClass 2nd last level


cClass at 5th level


dAll with same abstraction


View Answer Class at 1st level

If there are 3 classes. Class C is derived from class B and B is derived from A, Which class destructor will be called at last if object of C is destroyed.


aA


bB


cC


d All together


View Answer A

If there are 5 classes, E is derived from D, D from C, C from B and B from A. Which class constructor will be called first if the object of E or D is created?


aA


b B


cC


dA and B


View Answer A

Goto Page No.

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