Lesson 6 Assessment Quiz

Lesson 6 Assessment Quiz

6th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

B3-8.1 Polymorphism - Encapsulation

B3-8.1 Polymorphism - Encapsulation

Java Objects Quiz

Java Objects Quiz

 Introduction to inheritance and polymorphism

Introduction to inheritance and polymorphism

PP-T3-SL

PP-T3-SL

Polymorphism in Java

Polymorphism in Java

Lesson 6 Assessment Quiz

Lesson 6 Assessment Quiz

Assessment

Quiz

Computers

6th - 12th Grade

Hard

Created by

Whizara Teacher

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ access modifier means we do not explicitly declare an access modifier for a class, field, method, etc.

default

public

private

protected

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A class, method, constructor, interface, etc. declared ____ can be accessed from any other class.

public

private

hidden

none of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Polymorphism is achieved in Java using

 function/method overloading

 this statement

 nested loops

 break statement

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ means “of many forms”. It allows us to perform a single action with different outcomes and can be viewed as a way to reuse methods / operators to achieve different things.

Encapsulation

Looping

Polymorphism

Object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to implement inheritance in Java classes?

break

extends

this

for

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid type of inheritance in Java?

Single

Hierarchical

Multi level

Abstract

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java supports:

 run time polymorphism

 compile time polymorphism

 both run time and compile time polymorphism

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

State true or false. When there are multiple functions with the same name but different parameters then these functions are said to be overloaded.

True

False