OOPs UNIT 2 & 3

OOPs UNIT 2 & 3

University

•

30 Qs

quiz-placeholder

Similar activities

Arduino

Arduino

University

•

25 Qs

Sports and Games

Sports and Games

KG - Professional Development

•

25 Qs

Advanced Game Design Midterm

Advanced Game Design Midterm

University

•

25 Qs

COVID-19 QUIZIZZ MEDSOC RCMP

COVID-19 QUIZIZZ MEDSOC RCMP

University

•

25 Qs

Aptiverse - Spectra 2k24 Round 1 Room 5

Aptiverse - Spectra 2k24 Round 1 Room 5

University

•

25 Qs

CLOUD COMPUTING

CLOUD COMPUTING

University

•

25 Qs

BAHASA INGGRIS LINTAS MINAT

BAHASA INGGRIS LINTAS MINAT

University

•

25 Qs

Most popular boy names

Most popular boy names

3rd Grade - Professional Development

•

26 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?