Java_Quiz_Three

Java_Quiz_Three

University

20 Qs

quiz-placeholder

Similar activities

Assignment 7 - Looping

Assignment 7 - Looping

University

16 Qs

Soft_Dev

Soft_Dev

University

18 Qs

4-2 final QUIZ in ELEC4

4-2 final QUIZ in ELEC4

University

20 Qs

Conditions

Conditions

University

15 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Computer Security Measure

Computer Security Measure

11th Grade - University

19 Qs

2.3.1 Graph Traversal & Path Finding Algorithms

2.3.1 Graph Traversal & Path Finding Algorithms

12th Grade - University

20 Qs

Kuis Pemrograman Dasar

Kuis Pemrograman Dasar

University

20 Qs

Java_Quiz_Three

Java_Quiz_Three

Assessment

Quiz

Computers

University

Hard

Created by

D Anil Kumar

Used 20+ times

FREE Resource

AI

Enhance your content

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

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

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?