Java quiz based on inheritance

Java quiz based on inheritance

University

10 Qs

quiz-placeholder

Similar activities

Python List

Python List

4th Grade - University

15 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Programming in C

Programming in C

University

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

GIT COURSE

GIT COURSE

University

13 Qs

Testeo de equipos - BIOS

Testeo de equipos - BIOS

University

10 Qs

General Ict Quiz

General Ict Quiz

4th Grade - University

15 Qs

CONSULTAS EN SQL SERVER

CONSULTAS EN SQL SERVER

University

8 Qs

Java quiz based on inheritance

Java quiz based on inheritance

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

shruti keshari

Used 401+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Output of following Java Program?

Derived::show() called

Base::show() called

Run time Error

Compilation Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Output of following Java Program?

10

20

Compilation Error

Run Time Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Output of following Java Program?

12

321

123

23

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of following program?

Base::show() called

Derived::show() called

Compiler Error

Runtime Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following program?

Base::show() called

Derived::show() called

Compiler Error

Run Time Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which inheritance in java programming is not supported

Multiple inheritance using classes

Multiple inheritance using interfaces

Multilevel inheritance

Single inheritance

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is subclass in java?

A subclass is a class that extends another class

A subclass is a class declared inside a class

Both above.

None of the above.

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?