quiz 2

quiz 2

12th Grade

15 Qs

quiz-placeholder

Similar activities

Sains Komputer Tingkatan 4 - 1.3.1 Menjelaskan hubungan

Sains Komputer Tingkatan 4 - 1.3.1 Menjelaskan hubungan

10th - 12th Grade

16 Qs

Arrays in Swift

Arrays in Swift

10th - 12th Grade

13 Qs

LATIHAN SOAL PEMROGRAMAN

LATIHAN SOAL PEMROGRAMAN

9th Grade - University

15 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

2025 python class first quiz

2025 python class first quiz

9th Grade - University

10 Qs

BÀI TẬP THỰC HÀNH VỚI QUIZIZZ

BÀI TẬP THỰC HÀNH VỚI QUIZIZZ

9th - 12th Grade

10 Qs

Greenfoot

Greenfoot

10th - 12th Grade

17 Qs

Coding Basics SC-1

Coding Basics SC-1

7th - 12th Grade

20 Qs

quiz 2

quiz 2

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

TVK Purna Prasad

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?