Day 5 - Inheritance, super, final, abstraction, polymorphism

Day 5 - Inheritance, super, final, abstraction, polymorphism

University

60 Qs

quiz-placeholder

Similar activities

AIDS Placement Test-05.08.25

AIDS Placement Test-05.08.25

University

63 Qs

Data Communication & Networks

Data Communication & Networks

University

60 Qs

Java

Java

University

61 Qs

NET1L - Lesson 8 (Network Layer Pt.2)

NET1L - Lesson 8 (Network Layer Pt.2)

University

62 Qs

VB.NET Basics Quiz

VB.NET Basics Quiz

University

65 Qs

ITE 359 Networking P2 Exam

ITE 359 Networking P2 Exam

University

65 Qs

CMPTR 2L Midterm Exam

CMPTR 2L Midterm Exam

University

55 Qs

Latihan JK 2TIE

Latihan JK 2TIE

University

60 Qs

Day 5 - Inheritance, super, final, abstraction, polymorphism

Day 5 - Inheritance, super, final, abstraction, polymorphism

Assessment

Quiz

Computers

University

Medium

Created by

Prof. Karale

Used 1+ times

FREE Resource

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is true about inheritance in Java?
Java supports multiple inheritance using classes
Java supports multilevel inheritance
Java does not support inheritance
Inheritance reduces code reuse

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the base class of all Java classes?
Object
Class
Main
Parent

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to inherit a class in Java?
implements
extends
inherit
base

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is it called when a subclass has its own version of a method?
Method Overloading
Method Inheritance
Method Overriding
Method Hiding

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default access modifier for a class member?
public
private
protected
package-private

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In multilevel inheritance, a class can inherit from:
Only one class
Two classes
Three classes
Multiple interfaces

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these types of inheritance are supported in Java?
Single
Multiple
Hybrid
Multithreaded

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?