
OOP Funda 2

Quiz
•
Computers
•
Professional Development
•
Hard
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
Determine the output of the code below
testVariable is Me
testVariable is Not Me
Compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Wayground
10 questions
GSI DP-100 Day 1

Quiz
•
University - Professi...
10 questions
DP-100 Day 5_6

Quiz
•
University - Professi...
14 questions
AWS Restart Quiz 2 bancos de dados

Quiz
•
Professional Development
10 questions
Khám phá máy tính lớp 5

Quiz
•
10th Grade - Professi...
10 questions
Snapdragon Academy

Quiz
•
Professional Development
10 questions
Types of Data

Quiz
•
Professional Development
10 questions
💯Quiz: Discover AI in Daily Life

Quiz
•
Professional Development
11 questions
Lesson 5 - Java OOP

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade