Access Modifiers, Inheritance & Polymorphism

Access Modifiers, Inheritance & Polymorphism

University

39 Qs

quiz-placeholder

Similar activities

Class Test 1 - CSE 443 (Mobile Telecommunication)

Class Test 1 - CSE 443 (Mobile Telecommunication)

University

40 Qs

BAB 3 TIK - Informatika Kelas 8

BAB 3 TIK - Informatika Kelas 8

8th Grade - University

35 Qs

MTA Windows OS Fundamentals Test 1

MTA Windows OS Fundamentals Test 1

9th Grade - Professional Development

35 Qs

Post test Keamanan Jaringan

Post test Keamanan Jaringan

University

40 Qs

Security Part 2( Technical Diploma)

Security Part 2( Technical Diploma)

University

35 Qs

Soal WAN Tkj kls 2

Soal WAN Tkj kls 2

University

41 Qs

UJIAN MID SEMESTER 1 X RPL SISTEM KOMPUTER

UJIAN MID SEMESTER 1 X RPL SISTEM KOMPUTER

University

35 Qs

MOS Word 2016 - Quiz 2

MOS Word 2016 - Quiz 2

University

34 Qs

Access Modifiers, Inheritance & Polymorphism

Access Modifiers, Inheritance & Polymorphism

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

SrinivasaRao SrinivasaRao

Used 311+ times

FREE Resource

AI

Enhance your content in a minute

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

39 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this keyword must be used to inherit a class?

super

this

extent

extends

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

public member

private member

protected member

static member

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is correct way of inheriting class A by class B?

class B + class A {}

class B inherits class A {}

class B extends A {}

class B extends class A {}

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the output of this program?

0

1

2

Compilation Error

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the output of this program?

2 2

3 3

2 3

3 2

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the output of this program?

1 2

2 1

Runtime Error

Compilation Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is not type of inheritance?

Single inheritance

Double inheritance

Hierarchical inheritance

Multiple inheritance

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