UNIT 2 & 3

UNIT 2 & 3

University

30 Qs

quiz-placeholder

Similar activities

แบบทดสอบ IoT

แบบทดสอบ IoT

University

25 Qs

latihan UAS

latihan UAS

University

25 Qs

PEKERJAAN DASAR OTOMOTIF X

PEKERJAAN DASAR OTOMOTIF X

University

25 Qs

Java Quiz

Java Quiz

University - Professional Development

30 Qs

Electroblitz---Software

Electroblitz---Software

University

25 Qs

Java4

Java4

University

30 Qs

Que tanto sabes de informatica y tecnologia

Que tanto sabes de informatica y tecnologia

9th Grade - Professional Development

25 Qs

Hệ Điều Hành 3 (TN)

Hệ Điều Hành 3 (TN)

University

25 Qs

UNIT 2 & 3

UNIT 2 & 3

Assessment

Quiz

Other

University

Hard

Created by

prabavadhi undefined

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?