
quiz 2
Authored by TVK Purna Prasad
Computers
12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is Inheritance in Java programming?
Inheritance in Java programming is a way to create new classes.
Inheritance in Java programming involves copying all properties from a superclass to a subclass.
Inheritance in Java programming allows a subclass to inherit properties and behaviors from a superclass.
Inheritance in Java programming is not supported by the language.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used for inheritance in Java?
extends
inheritable
inheritance
inherit
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can a class inherit constructors from its superclass in Java?
yes
No
irrelevent
none of the above
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a subclass in Java inheritance?
A subclass in Java inheritance is a class that inherits attributes and methods from another class called a superclass.
A subclass in Java inheritance is a class that can only have private attributes and methods.
A subclass in Java inheritance is a class that does not inherit anything from a superclass.
A subclass in Java inheritance is a class that inherits attributes and methods from a subclass.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the parent class of all classes in Java?
Object
Root
Parent
Main
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can we perform multiple inheritance in Java?
Sometimes
Maybe
Yes
No
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can a subclass inherit private members of its superclass?
No
Only if explicitly allowed
Sometimes
Yes
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?