0% found this document useful (0 votes)
54 views7 pages

OOP Mid Lab Quiz2

Object Oriented Programming - AMA

Uploaded by

Meliodas Sama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
54 views7 pages

OOP Mid Lab Quiz2

Object Oriented Programming - AMA

Uploaded by

Meliodas Sama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
41823, 12:16 PM MIDTERM LAB QUIZ 2: Attempt review Started on Thursday, 16 March 2023, 1048 PM State Finished Completed on Thursday, 16 March 2023, 17:03 PM Time taken 14 mins 48 secs Marks 20.00/20.00 Grade 100.00 out of 100.00, ueston 1 ‘The process by which one class acquires the properties (data members) and functionaities(methods) of another class Select one: a Inhertance¥™ . Polymorphism & Encapsulation 4. Abstraction overon 2 ‘The super keyword refers to the Immediately above of the calling class inthe hi Select one Inheritance: Super Keyword Super Class¥ Constructor ueston 3 This is the least restrictive access modifier. Methods and attributes that use the public modifier can be accessed within your current class and by all other classes Select one a. Private b. No Modifier < Publicw 4d. Protected hitps:/vimosiral amaesontine.com/2223A¢modiquzirview.php?allempt=248601&cmid=60123 41523, 12:16 PM MIDTERM LAB QUIZ 2: Attempt review ueston ‘One ofthe OOPs feature that allows us to perform a single ation indifferent ways. Select one 8 Encapsulation b. Abstraction Inheritance: 4. Polymorphism werton 5 It isthe most fundamental entity in ava or any other Object Oriented Language. Select one a Chass b. Behavior Method d. Objet ueston 6 ‘The superclass constructor can be called explicily using the 2 Select one Constructor b. Inheritance & Superclass 4. Super Keyword itps:vimesiral amaesontine.com/2223A/modiquizireview php ?allempt=24860 18cm 123 41523, 12:16 PM MIDTERM LAB QUIZ 2: Attempt review ueston 7 ‘The following are the advantages of Inheritance except Select one 18. One superclass can be used for the numberof subclasses ina hierarchy b._ Reusablity of code Allows you to define one interface 4d. -Avoids duplicity and data redundancy uerton 8 ‘The class whose properties and functionalities are use (inherited) by another class is known 95 Select one 1. Sub Class b. Bande Child Class Parent Class¥™ ueston 9 Select one Public b. No Modifier Protected Private hitps:/vimosiral amaesontine.com/2223A¢modiquzirview.php?allempt=248601&cmid=60123 a7 41523, 12:16 PM MIDTERM LAB QUIZ 2: Attempt review ‘quesvon 10 ‘The same method in child cass which is already present inthe parent class. Select one: 8. Object Overrising b. Object Overloading & Method Overloading 4d. Method OverrcingY weston 11 Use to define the visibility of classes, methods, and attributes. Select one Protected Public Private ‘Access Modifier uesvon 12 This is the most restrictive and most commonly used access modifier. you use the this modifier with an atibute of method, it can only be accessed within the same cass Select one 2 Public b. Private No Modifier Protected itps:vimesiral amaesontine.com/2223A/modiquizireview php ?allempt=24860 18cm 123 41523, 12:16 PM MIDTERM LAB QUIZ 2: Attempt review quesvon 13 Ithas the static Keyword asa prefix in its declaration. Its definition occurs only inside a class and outside any function Select one Instance variables b. Class variables Local variables Variable Types werton 14 Attributes and methods with the access modifer protected can be accessed within your clas, by all lasses within the same package, and by all subclasses within the same or other packages, Select one 2 Protected¥ b. Private No Modiier 4. Public weston 15 ‘These are variables which have declarations inside methods, constructors or blocks. Select one 4. Local variables b. Clas variables Variable Types 4d. Instance variables itps:vimesiral amaesontine.com/2223A/modiquizireview php ?allempt=24860 18cm 123 41523, 12:16 PM MIDTERM LAB QUIZ 2: Attempt review uesvon 16 ‘Sub class is invoked when we create the object of subclass, i by default invokes the default constructor of superclass Select one 8. Constructor¥ b. Inheritance © Super Class 4d. Super Keyword uerton 17 ‘The class that extends the features of another clas is known as ? Select one 2 Parent Class b. Bande Sub Class Child Class uesion 18 The capabiliy of a method to do different things based on the object tha and have mule implementations. acting upon. In other words, i allows you define one interface Select one 2. Polymorphism . Inheritance Encapsulation Abstraction itps:vimesiral amaesontine.com/2223A/modiquizireview php ?allempt=24860 18cm 123 41523, 12:16 PM MIDTERM LAB QUIZ 2: Attempt review quesvon 19 ‘These variables are inside a class however outside any method. They come into existence when the class instantates Select one 8 Local variables b. Variable Types Class variables Instance variables ‘querton 20 Itis a blueprint for objects to follow a specific schema defined inthe class. Select one 8. Behavior b. class Object Method itps:vimesiral amaesontine.com/2223A/modiquizireview php ?allempt=24860 18cm 123

You might also like