Day 4 - Inheritance, super, final, abstract, interface

Day 4 - Inheritance, super, final, abstract, interface

University

50 Qs

quiz-placeholder

Similar activities

MCTCC0113

MCTCC0113

University

50 Qs

Internal Exam Quiz

Internal Exam Quiz

University

47 Qs

Konsentrasi Keahlian TKJ

Konsentrasi Keahlian TKJ

12th Grade - University

53 Qs

RIA Revision for Class Test_Set 2

RIA Revision for Class Test_Set 2

University

50 Qs

Routing and Switching

Routing and Switching

University

54 Qs

Akt test (51-100)    Ескі вариант

Akt test (51-100) Ескі вариант

University

50 Qs

OBJECT ORIENTED ANALYSIS AND DESIGN

OBJECT ORIENTED ANALYSIS AND DESIGN

University

46 Qs

VB.Net - OOP

VB.Net - OOP

University

50 Qs

Day 4 - Inheritance, super, final, abstract, interface

Day 4 - Inheritance, super, final, abstract, interface

Assessment

Quiz

Computers

University

Medium

Created by

Prof. Karale

Used 2+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is inheritance in Java?
Code duplication
Multiple method calling
Acquiring properties of one class into another
Overloading methods

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to refer to the immediate parent class?
this
super
base
parent

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the 'final' keyword mean when applied to a variable?
It can be changed
It cannot be changed
It can be inherited
It is temporary

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which class cannot be extended in Java?
abstract class
final class
static class
interface

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an abstract class?
A class with no name
A class with only private members
A class that cannot be instantiated
A class that can only contain variables

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an interface?
A class with methods
A blueprint of a class with abstract methods
A final class
An enum

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?