OOP Funda 2

OOP Funda 2

Professional Development

10 Qs

quiz-placeholder

Similar activities

DS1

DS1

Professional Development

10 Qs

Java Programming Quiz #1

Java Programming Quiz #1

Professional Development

10 Qs

KOMPUTER DASAR

KOMPUTER DASAR

12th Grade - Professional Development

15 Qs

Lenguaje Java: Programación Modular

Lenguaje Java: Programación Modular

Professional Development

8 Qs

6. Method

6. Method

Professional Development

10 Qs

How much do you know about me and my roblox account?

How much do you know about me and my roblox account?

KG - Professional Development

12 Qs

Abstract Class

Abstract Class

University - Professional Development

9 Qs

Christoph Niemann basic facts

Christoph Niemann basic facts

1st Grade - Professional Development

7 Qs

OOP Funda 2

OOP Funda 2

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Java Batchfive

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is used to provide common behavior among different classes

Encapsulation

Abstraction

Interface

Inner class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default access modifier in Java?

public

private

package-private

protected

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables declared as final are modified once, in the declaration or inside a method

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Determine the output of the code below

testVariable is Me

testVariable is Not Me

Compilation error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Considering the code in the image, what will be the return value of getInstanceCount() after instantiating the class 10 times?

0

1

2

10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Among the declarations below, what is the correct and best way to declare a method that computes for a loan interest?

public void computeMonthlyInterest(double amount, double rate){...}

public void COMPUTE-MONTHLY-INTEREST(double amount, double rate){...}

public double InterestCalculator(double amount, double rate){...}

public double computeMonthlyInterest(double amount, double rate){...}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Abstract methods should always be implemented.

True

False

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?