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

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

University

50 Qs

quiz-placeholder

Similar activities

Unit 4 - Coding and Logic | End of LO1 and LO2 Ax.

Unit 4 - Coding and Logic | End of LO1 and LO2 Ax.

12th Grade - University

45 Qs

TECHNICAL QUIZ

TECHNICAL QUIZ

University

45 Qs

Chp. 3 Alice Variables

Chp. 3 Alice Variables

12th Grade - University

46 Qs

Java Test3

Java Test3

University

50 Qs

Day 3 - Class Object Static Constructor

Day 3 - Class Object Static Constructor

University

50 Qs

FullStack Django - [26 Apr 24] TEST - 2

FullStack Django - [26 Apr 24] TEST - 2

University

45 Qs

NET1L - Lesson 11 (IPv4 Addressing)

NET1L - Lesson 11 (IPv4 Addressing)

University

48 Qs

Quiz 1 PBO

Quiz 1 PBO

University

45 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 1+ 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?