Java Week 2 - Day 3 & 4

Java Week 2 - Day 3 & 4

Professional Development

10 Qs

quiz-placeholder

Similar activities

Inheritance & Abstraction

Inheritance & Abstraction

Professional Development

10 Qs

Java Displaying Data & Data Types

Java Displaying Data & Data Types

University - Professional Development

12 Qs

2. Ethics - Code of Conduct

2. Ethics - Code of Conduct

Professional Development

11 Qs

HCSO Quiz for Corp2 DIv Meeting 4 APRIL 2022

HCSO Quiz for Corp2 DIv Meeting 4 APRIL 2022

Professional Development

10 Qs

AWS Cloud

AWS Cloud

Professional Development

15 Qs

GSI DP-100 Day 1

GSI DP-100 Day 1

University - Professional Development

10 Qs

Java SE: Programming I

Java SE: Programming I

Professional Development

10 Qs

PBO

PBO

Professional Development

10 Qs

Java Week 2 - Day 3 & 4

Java Week 2 - Day 3 & 4

Assessment

Quiz

Computers

Professional Development

Hard

Created by

July Twenytweny

Used 4+ 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 and 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 below, what will be the return value of getInstanceCount() after instantiating it 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?