MCQ 11 MarkWhich type of features are implemented in subclass in inheritance?A Common✓ SpecialC a and b bothD None of theseAnswerCorrect option: B. SpecialSpecialView full question & answer→
MCQ 21 MarkWhich type of features are implemented in superclass in inheritance?✓ CommonB SpecialC a and b bothD None of theseAnswerCorrect option: A. CommonCommonView full question & answer→
MCQ 31 MarkWhich of the following represents exclusive relationship between two classes?AAggregation✓CompositionCEncapsulationDPolymorphismAnswerCorrect option: B. CompositionCompositionView full question & answer→
MCQ 41 MarkWhich of the following represents non-exclusive relationship between two classes?✓ AggregationB CompositionC EncapsulationD PolymorphismAnswerCorrect option: A. AggregationAggregationView full question & answer→
MCQ 51 MarkWhat is a relationship called when there is ‘has- a’ or ‘a-part-of’ relationship between two classes?A AggregationB Composition✓ a or bD PolymorphismAnswerCorrect option: C. a or ba or bView full question & answer→
MCQ 61 MarkFor which of the following values of attribute more than one class may be associated with each other?A Class✓ ObjectC DataD FieldAnswerCorrect option: B. ObjectObjectView full question & answer→
MCQ 71 MarkWhich of the following are distinguished by their state?A Class✓ ObjectC DataD FieldAnswerCorrect option: B. ObjectObjectView full question & answer→
MCQ 81 MarkWhich of the following together can a class encapsulate as a template that can be shared by all objects?A AttributeB Method✓ a and b bothD None of theseAnswerCorrect option: C. a and b botha and b bothView full question & answer→
MCQ 91 MarkWhich of the following encapsulates attributes (data) and methods (behavior or functionality) together as a template that can be shared by all objects?✓ ClassB InheritanceC Super objectD Sub objectAnswerCorrect option: A. ClassClassView full question & answer→
MCQ 101 MarkOn which of the following two does focus lie in object-oriented programming?A Data and AnimationB Networking and Animation✓ Data and functionalityD Animation and FunctionalityAnswerCorrect option: C. Data and functionalityData and functionalityView full question & answer→
MCQ 111 MarkIn which of the following does object-oriented methodology play significant role?A Analysis of software systemB DesignC Implementation✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 121 MarkWhat is represented using class-diagram?A RelationshipB Constraints✓ a and b bothD None of these.AnswerCorrect option: C. a and b botha and b bothView full question & answer→
MCQ 131 MarkBy which of the following is class made in composition?✓ By other classB InheritedC orD None of theseAnswerCorrect option: A. By other classBy other classView full question & answer→
MCQ 141 MarkIn which of the following classes do not inherit from other classes, but are composed of other classes?A InheritanceB AggregationC Polymorphism✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 151 Mark‘Which of the following statements is true for inheritance?A Allows to share functionality of classB Allows to reuse functionality of classC Extend functionality✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 161 MarkWhich type of relationship exists between superclass and subclass in inheritance?✓ ‘a kind of’B ‘multi kind of’C None of theseD ‘different kind of’AnswerCorrect option: A. ‘a kind of’‘a kind of’View full question & answer→
MCQ 171 MarkIn which classes does ‘a-kind-of’ relationship exist in inheritance?A Masterclass and SuperclassB Masterclass and Subclass✓ Superclass and SubclassD Subclass and SubclassAnswerCorrect option: C. Superclass and SubclassSuperclass and SubclassView full question & answer→
MCQ 181 MarkWhich of the following is an example of multilevel inheritance?A Person - Employee -TeacherB Computer - Mother board -Model✓ a and b bothD None of theseAnswerCorrect option: C. a and b botha and b bothView full question & answer→
MCQ 191 MarkWhen one class is derived from second class and second class is derived from third class; State what it is known as.✓ Inner inheritanceB Multilevel inheritanceC Level inheritanceD Nested inheritanceAnswerCorrect option: A. Inner inheritanceInner inheritanceView full question & answer→
MCQ 201 MarkWhich of the following class is a specialized version with additional attributes and methods?A SuperB Base✓ a and b bothD SubAnswerCorrect option: C. a and b botha and b bothView full question & answer→
MCQ 211 MarkIn which of the following class are common attributes and methods defined?A SubB ChildC a and b both✓ SuperAnswerCorrect option: D. SuperSuperView full question & answer→
MCQ 221 MarkWhich relationship refers between two classes where one class is a specialized version of another class?A Polymorphism✓ InheritanceC AbstractionD EncapsulationAnswerCorrect option: B. InheritanceInheritanceView full question & answer→
MCQ 231 Mark‘Which of the following is a class-diagram if teacher class is created in Person class?✓ Person ‘1— TeacherB Person —f TeacherC Person TeacherD Person TeacherAnswerCorrect option: A. Person ‘1— TeacherPerson ‘1— TeacherView full question & answer→
MCQ 241 MarkBy using arrow pointing to which class in class- diagram is inheritance represented?✓ superB SubC ChildD DerivedAnswerCorrect option: A. supersuperView full question & answer→
MCQ 251 MarkBy using which type of pointing to superclass in class-diagram is inheritance represented?A LineB Arrow✓ An empty diamondD A filled diamondAnswerCorrect option: C. An empty diamondAn empty diamondView full question & answer→
MCQ 261 Mark“Inheritance allows the methods to be redefined in subclass as per need.” Specify this statement.✓ This statement is true.B This statement is false.C It depends on object.D It depends on classAnswerCorrect option: A. This statement is true.This statement is true.View full question & answer→
MCQ 271 MarkWhat can be done in sub class?A New data can be addeB New members can be added.✓ a and b bothD None of theseAnswerCorrect option: C. a and b botha and b bothView full question & answer→
MCQ 281 MarkWhich feature provides reusability where existing methods can be reused without redefining?✓ AggregationB InheritanceC CompositionD EncapsulationAnswerCorrect option: A. AggregationAggregationView full question & answer→
MCQ 291 MarkChoose the data attributes and methods of the class that are available to objects in the subclass without rewriting their declaration.✓ SupeB SubC ChildD DerivedAnswerCorrect option: A. SupeSupeView full question & answer→
MCQ 301 MarkWhat is called an existing class in object-oriented terminology?A Super classB Parent classC Base class✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 311 MarkWhat is called a new class in object-oriented terminology?A SubclassB Child classC Derived class✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 321 MarkWhich relationship is appropriate when one class is a kind of other class?✓ ‘is - a - kind - of’B ‘multi - kind - of’C ‘multilevel - kind - of’D None of theseAnswerCorrect option: A. ‘is - a - kind - of’‘is - a - kind - of’View full question & answer→
MCQ 331 MarkWhich of the following refers to the capability of defining a new class of objects that inherits the characteristics of another existing class?A Aggregation✓ InheritanceC CompositionD EncapsulationAnswerCorrect option: B. InheritanceInheritanceView full question & answer→
MCQ 341 MarkWhich of the following is referred to as ‘is-a- kind-of’ relationship between two classes?A Aggregation✓ InheritanceC CompositionD EncapsulationAnswerCorrect option: B. InheritanceInheritanceView full question & answer→
MCQ 351 MarkWhich class is an example of aggregated class when Person class has Name and Address class?A PersonB AddressC Name✓ b & c bothAnswerCorrect option: D. b & c bothb & c bothView full question & answer→
MCQ 361 MarkWhich class is an example of aggregating class when Person class has Name and Address class?✓ PersonB AddressC NameD All of theseAnswerCorrect option: A. PersonPersonView full question & answer→
MCQ 371 MarkWhat is known as the class when it is contained in owner class?A Subject ClassB Part ClassC Aggregated Class✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 381 MarkWhat is known as the class when it contains object of other class?A Owner ClassB Whole ClassC Aggregating Class✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 391 MarkWith which symbol is aggregation represented in class-diagram?✓ Symbol of an empty diamondB Symbol of a filled diamondC Symbol of an empty triangleD Symbol of a filled diamondAnswerCorrect option: A. Symbol of an empty diamondSymbol of an empty diamondView full question & answer→
MCQ 401 MarkHow much is the object class affected when an object of aggregation class is deleted in composition?A It will not be delete✓ It will be deleted.C It depends on object.D It depends on class.AnswerCorrect option: B. It will be deleted.It will be deleted.View full question & answer→
MCQ 411 MarkWhich of the following is a strong type of aggregation where the lifetime of the part class depends on the existence of the owner class?A AggregationB PolymorphismC Encapsulation✓ CompositionAnswerCorrect option: D. CompositionCompositionView full question & answer→
MCQ 421 MarkWhich of the following represents exclusive relationship between two classes?A AggregationB PolymorphismC Encapsulation✓ CompositionAnswerCorrect option: D. CompositionCompositionView full question & answer→
MCQ 431 MarkIn which of the following is the life of an object of the part class not determined by the owner class?✓ AggregationB PolymorphismC EncapsulationD AbstractionAnswerCorrect option: A. AggregationAggregationView full question & answer→
MCQ 441 MarkIn which of the following can the class that forms part of the owner class exist independently?✓ AggregationB PolymorphismC EncapsulationD AbstractionAnswerCorrect option: A. AggregationAggregationView full question & answer→
MCQ 451 MarkWhich of the following represents non-exclusive relationship between two classes?✓ AggregationB PolymorphismC EncapsulationD AbstractionAnswerCorrect option: A. AggregationAggregationView full question & answer→
MCQ 461 MarkWhich attributes will a class contain when we define a class ‘computer’?A MotherboardB Screen✓ a and b bothD None of theseAnswerCorrect option: C. a and b botha and b bothView full question & answer→
MCQ 471 MarkA computer screen is a class with following attribute?A lengthB widthC model✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 481 MarkWhich relationship does aggregation or composition represent between different classes?A has-aB a-part-of✓ a or bD None of theseAnswerCorrect option: C. a or ba or bView full question & answer→
MCQ 491 MarkWhat is called when objects of one class are composed of other class?A AggregationB Composition✓ a or bD OverloadingAnswerCorrect option: C. a or ba or bView full question & answer→
MCQ 501 MarkWhat is called the capability of using same names to mean different things in different context in general?✓ OverloadingB AggregationC CompositionD EncapsulationAnswerCorrect option: A. OverloadingOverloadingView full question & answer→