
OOP Quiz for Level 2 Undergraduates

Quiz
•
Computers
•
Professional Development
•
Medium
Ms. Yehemini Jayatissa - University of Kelaniya
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of encapsulation?
Code duplication
Hiding internal details
Increasing complexity
Public access to variables
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following allows runtime polymorphism in Java?
Method Overloading
Constructor Overloading
Method Overriding
Final methods
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to inherit a class in Java?
import
extend
this
implements
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of: System.out.println(10 > 5 && 3 < 2);
true
false
10
Compile error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which access modifier allows access only within the same class?
public
protected
private
default
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is abstraction in OOP?
Hiding data
Hiding logic
Hiding implementation details and showing only functionality
Hiding methods
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to catch exceptions?
try-catch
throw
throws
if-else
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
C# Interfaces

Quiz
•
Professional Development
20 questions
Java Quiz

Quiz
•
Professional Development
20 questions
Web Development Technical Skills

Quiz
•
Professional Development
17 questions
Java programming

Quiz
•
Professional Development
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
20 questions
SPARK FIDDLE

Quiz
•
Professional Development
16 questions
ArqCloud Advanced - Clase 2

Quiz
•
Professional Development
20 questions
JavaScript - Cuestionario de Repaso

Quiz
•
Professional Development
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