
Java Inheritance & Polymorphism Quiz
Authored by Viswanath E
Information Technology (IT)
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of inheritance in Java?
To define multiple constructors
To reuse existing code
To create new data types
To hide data from other classes
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used for inheritance in Java?
inherit
extends
override
implements
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can a subclass constructor directly access a private member of its superclass?
Yes, always
No, private members are not accessible
Only using super
Only in the same package
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What happens when both superclass and subclass have a field with same name?
Superclass field is accessed through superclass reference
Compilation error
Java doesn't allow field hiding
Subclass field hides superclass field
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can we override a method that throws an exception with one that doesn't?
No
Only if both throw same exception
Only if exception is unchecked
Yes
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these allows multiple inheritance?
Abstract classes
Interfaces
Classes
Constructors
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is an example of polymorphism?
Method Overloading
Declaring interfaces
Using only static methods
Declaring final variables
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?
Similar Resources on Wayground
20 questions
Quiz desarrollo app moviles
Quiz
•
University
20 questions
Chapter 6: E-commerce & Social Informatics Quiz
Quiz
•
University
20 questions
Quiz Pemrograman Mobile
Quiz
•
University
20 questions
Quiz tentang Arduino dan Raspberry Pi
Quiz
•
11th Grade - University
22 questions
Internet and App script
Quiz
•
5th Grade - University
20 questions
ICC_Module_7
Quiz
•
University
20 questions
LogoNOVA (FYIT Logo Quiz)
Quiz
•
University
20 questions
Quiz Diagram Kelas
Quiz
•
11th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University