Search Header Logo

OOP Quiz for Level 2 Undergraduates

Authored by Ms. Yehemini Jayatissa - University of Kelaniya

Computers

Professional Development

Used 1+ times

OOP Quiz for Level 2 Undergraduates
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?