Java Object Oriented Programming

Java Object Oriented Programming

15 Qs

quiz-placeholder

Similar activities

React Basico

React Basico

1st Grade

10 Qs

JAVA S8 (DR LJK) 16.09.2020

JAVA S8 (DR LJK) 16.09.2020

Professional Development

10 Qs

G4- Quiz

G4- Quiz

University

12 Qs

K-5 Embedded CS Vocab

K-5 Embedded CS Vocab

KG - 5th Grade

10 Qs

INSPECTIO

INSPECTIO

Professional Development

15 Qs

Conceptos Básicos Spring

Conceptos Básicos Spring

University

10 Qs

React Basics Quiz

React Basics Quiz

Professional Development

10 Qs

Tipos de datos

Tipos de datos

1st - 2nd Grade

12 Qs

Java Object Oriented Programming

Java Object Oriented Programming

Assessment

Quiz

Professional Development

Easy

Created by

Angeli Cruz

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of hiding the details of an object in Java called?
Abstraction
Polymorphism
Inheritance
Encapsulation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create an object in Java?

object

new

create

instance

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which concept in Java is a mechanism where one class acquires the property of another class?
Inheritance
Polymorphism
Encapsulation
Abstraction

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which OOP concept allows an object to take on many forms?

Encapsulation

Polymorphism

Abstraction

Inheritance

Answer explanation

Polymorphism allows an object to take on many forms, enabling different classes to be treated as instances of a parent class.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which OOP concept allows a class to be defined by its characteristics, such as fields, and its behavior, such as methods?

Abstraction

Inheritance

Polymorphism

Encapsulation

Answer explanation

Abstraction in OOP allows a class to be defined by its characteristics (fields) and behavior (methods), focusing on what an object can do rather than how it does it.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which access modifier allows a class to be accessed from anywhere within the same package?

protected

private

default

public

Answer explanation

The 'default' access modifier allows a class to be accessed from anywhere within the same package, making it the correct choice in this scenario.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid access modifier in Java?

private

protected

global

public

Answer explanation

The correct choice is 'global' because it is not a valid access modifier in Java. The valid access modifiers are private, protected, and public.

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?