

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
A subclass inherits all the members (fields, methods, and nested classes) from its superclass |
A. | Yes |
B. | NO |
C. | Can be yes or no |
D. | Can not say |
E. | |
Answer» B. NO | |
2. |
______ is a way of saying: This object is a type of that object. |
A. | IS-A |
B. | HAS-A |
C. | ARE-A |
D. | HAD-A |
Answer» B. HAS-A | |
3. |
The super keyword is similar to _________ keyword. |
A. | construct |
B. | this |
C. | class |
D. | extends |
Answer» C. class | |
4. |
___________ is the keyword used to inherit the properties of a class. |
A. | inherit |
B. | poly |
C. | extends |
D. | super |
Answer» D. super | |
5. |
The class whose properties are inherited is known as superclass. |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
Answer» B. FALSE | |
6. |
Subclass also known as ? |
A. | derived class |
B. | child class |
C. | base class |
D. | Both A and B |
Answer» E. | |
7. |
The class which inherits the properties of other is known as ________ |
A. | superclass |
B. | parent class |
C. | subclass |
D. | None of the above |
Answer» D. None of the above | |
8. |
____________ can be defined as the process where one class acquires the properties (methods and fields) of another. |
A. | Overriding |
B. | Inheritance |
C. | Polymorphism |
D. | Abstraction |
Answer» C. Polymorphism | |