
UNIT 2

Quiz
•
Engineering
•
University
•
Hard
Senbaga Rajan
Used 5+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which concept allows two methods to have the same name but different parameters?
a) Overriding
b) Overloading
c) Dynamic dispatch
d) Encapsulation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, objects are passed to methods:
a) By reference
b) By copy of the object
c) By value
d) By pointer
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A static nested class can access:
a) Only static members of outer class
b) All members of outer class
c) Only private members
d) Nothing from outer class
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for inheritance?
a) implements
b) extend
c) inherit
d) None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Default package access modifier (no keyword) means:
a) private
b) protected
c) package-private
d) public
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a method returns an object, what is returned?
a) A new copy of the object
b) The object’s reference
c) Object memory address
d) All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When overriding a method:
a) Return type must always be exactly the same
b) Static methods can be overridden
c) Return type can be covariant
d) Return type can be anything
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
ACM Tech Weekend Quiz (Sept 20)

Quiz
•
University
25 questions
PodiumRound

Quiz
•
University
20 questions
Examen Estructura de datos 2P

Quiz
•
University
28 questions
Test Pengetahuan UKK

Quiz
•
12th Grade - University
20 questions
Hackharbor 3.0 Day 3:C

Quiz
•
University
30 questions
Fire Safety and Extinguishing Agents

Quiz
•
University
20 questions
Mastering Python Programming Concepts

Quiz
•
University
20 questions
SOM- Arbee

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University