Search Header Logo

Java_Quiz_Three

Authored by D Anil Kumar

Computers

University

Used 20+ times

Java_Quiz_Three
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Output of following Java Program?

Derived::show() called

Base::show() called

Run time Error

Compilation Error

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of following program?

Base::show() called

Derived::show() called

Compiler Error

Runtime Error

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which inheritance in java programming is not supported

Multiple inheritance using classes

Multiple inheritance using interfaces

Multilevel inheritance

Single inheritance

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Predict the output of following program

Base

Derived

Compiler Error

Runtime Error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A class member declared protected becomes a member of subclass of which type?

public member

private member

protected member

static member

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?

Protected

Private

Public

Static

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If super class and subclass have same variable name, which keyword should be used to use super class?

super

this

upper

classname

Access all questions and much more by creating a free account

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?

Discover more resources for Computers