quiz 2

quiz 2

12th Grade

15 Qs

quiz-placeholder

Similar activities

PBO XII RPL

PBO XII RPL

9th - 12th Grade

10 Qs

Java Classes and Objects

Java Classes and Objects

12th Grade

14 Qs

UAS PBO: Enkapsulasi dan Pewarisan

UAS PBO: Enkapsulasi dan Pewarisan

12th Grade

18 Qs

Mastering OOP in Advanced Python

Mastering OOP in Advanced Python

12th Grade

10 Qs

Understanding Object-Oriented Programming Concepts (video)

Understanding Object-Oriented Programming Concepts (video)

12th Grade

11 Qs

Perseritje OOP

Perseritje OOP

1st - 12th Grade

17 Qs

Unit 9 Retake CSA

Unit 9 Retake CSA

9th - 12th Grade

13 Qs

Grade 12 Java Programming Quiz

Grade 12 Java Programming Quiz

12th Grade

10 Qs

quiz 2

quiz 2

Assessment

Quiz

Computers

12th Grade

Medium

Created by

TVK Purna Prasad

Used 4+ times

FREE Resource

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

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?