Access Modifiers, Inheritance & Polymorphism

Access Modifiers, Inheritance & Polymorphism

University

39 Qs

quiz-placeholder

Similar activities

OOP-A1

OOP-A1

University

40 Qs

Java Control Flow and Collections

Java Control Flow and Collections

11th Grade - Professional Development

39 Qs

Technical Round 3

Technical Round 3

University

40 Qs

CIA VIVA- Practical & Theory

CIA VIVA- Practical & Theory

University

40 Qs

PL/SQL Advanced knowledge

PL/SQL Advanced knowledge

University

37 Qs

Structures and Pointers in C

Structures and Pointers in C

University

35 Qs

Comp Thinking & Programming - Python 1

Comp Thinking & Programming - Python 1

University

35 Qs

10th Grade 10  - IT Programming - 2nd Cycle Exam

10th Grade 10 - IT Programming - 2nd Cycle Exam

10th Grade - University

40 Qs

Access Modifiers, Inheritance & Polymorphism

Access Modifiers, Inheritance & Polymorphism

Assessment

Quiz

Computers

University

Hard

Created by

SrinivasaRao SrinivasaRao

Used 310+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?