OOPs UNIT 2 & 3

OOPs UNIT 2 & 3

University

30 Qs

quiz-placeholder

Similar activities

BIG DATA

BIG DATA

University

25 Qs

Kuiz Phyton 2

Kuiz Phyton 2

University

25 Qs

Manegement-Robbins-C.6- Hoạch Định

Manegement-Robbins-C.6- Hoạch Định

University

25 Qs

WebTopia Round-1 (set-2)

WebTopia Round-1 (set-2)

University

25 Qs

CLOUD COMPUTING

CLOUD COMPUTING

University

25 Qs

Module 4 Quiz

Module 4 Quiz

University

25 Qs

Patient Bill of Rights

Patient Bill of Rights

University

25 Qs

Georgia Driver’s License Practice Test

Georgia Driver’s License Practice Test

9th Grade - 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?