OOPs UNIT 2 & 3

OOPs UNIT 2 & 3

University

•

30 Qs

quiz-placeholder

Similar activities

Engineering Ethics & Integrity (S2, 2025)

Engineering Ethics & Integrity (S2, 2025)

University

•

27 Qs

UAS Manajemen Proses Bisnis (Kelas B2 2023)

UAS Manajemen Proses Bisnis (Kelas B2 2023)

University

•

25 Qs

JAVA

JAVA

University

•

25 Qs

I.Q CHALLENGE

I.Q CHALLENGE

1st Grade - Professional Development

•

25 Qs

ENGLISH_TRYOUT1

ENGLISH_TRYOUT1

University

•

25 Qs

Financial Accounting and Reporting Quiz Bowl

Financial Accounting and Reporting Quiz Bowl

University

•

26 Qs

PIH/ HIRSCHSPRUNG

PIH/ HIRSCHSPRUNG

University

•

25 Qs

Kuis VBA Excel

Kuis VBA Excel

University

•

25 Qs

OOPs UNIT 2 & 3

OOPs UNIT 2 & 3

Assessment

Quiz

•

Other

•

University

•

Practice Problem

•

Hard

Created by

prabavadhi undefined

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is an exception in Java?

A compile-time error

A runtime error

An error that cannot be handled

An object representing an error condition

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which block is always executed after a try block, regardless of whether an exception occurred or not?

finally

catch

throw

throws

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Can a single try block have multiple catch clauses?

Yes

No

Only two

Only three

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What happens if an exception is not caught in a program?

The program runs normally

The program terminates abnormally

The exception is ignored

The exception is logged but the program continues

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is NOT a built-in exception in Java?

ArrayIndexOutOfBoundsException

IOException

FileNotFoundException

MemoryLimitExceededException

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which keyword is used to manually throw an exception in Java?

throw

throws

exception

error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which keyword is used to declare that a method may throw exceptions?

throw

throws

catch

finally

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?