OOP Quiz for Level 2 Undergraduates

OOP Quiz for Level 2 Undergraduates

Professional Development

20 Qs

quiz-placeholder

Similar activities

Python basics

Python basics

Professional Development

22 Qs

C module 1 second quiz

C module 1 second quiz

Professional Development

25 Qs

MCA24/3E4/MAD ASSESSMENT

MCA24/3E4/MAD ASSESSMENT

Professional Development

25 Qs

LOOPS in OOPS

LOOPS in OOPS

Professional Development

20 Qs

BIG DATA DAY 3 Quiz

BIG DATA DAY 3 Quiz

Professional Development

15 Qs

JavaScript

JavaScript

Professional Development

20 Qs

CIW IBA Lesson 6 Vocabulary

CIW IBA Lesson 6 Vocabulary

8th Grade - Professional Development

16 Qs

JavaScript with Arrays

JavaScript with Arrays

Professional Development

15 Qs

OOP Quiz for Level 2 Undergraduates

OOP Quiz for Level 2 Undergraduates

Assessment

Quiz

Computers

Professional Development

Medium

Created by

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

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?