Search Header Logo

Java Exception Handling Quiz

Authored by Hoang Khoa

Information Technology (IT)

12th Grade

Java Exception Handling Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Cái gì là một ngoại lệ trong Java?

Một lỗi biên dịch

Một sự kiện không mong muốn trong quá trình thực thi chương trình

Một loại biến

Một phương pháp lưu trữ dữ liệu

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Trong số các ngoại lệ sau, ngoại lệ nào là checked exception?

ArrayIndexOutOfBoundsException

NullPointerException

ArithmeticException

IOException

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Từ khóa 'throw' trong Java có tác dụng gì?

Tạo một lớp ngoại lệ mới

Khai báo một ngoại lệ

Ném một ngoại lệ một cách rõ ràng

Bắt một ngoại lệ

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Khối nào luôn được thực thi sau khối try-catch?

khối try

khối catch

khối finally

khối throw

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Các loại ngoại lệ nào not checked tại compile time?

Syntax exceptions

Runtime exceptions

Logical exceptions

Checked exceptions

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Mục đích của khối 'finally' là gì?

Để thực thi mã bất kể có ngoại lệ hay không

Để xử lý ngoại lệ

Để khai báo ngoại lệ

Để ném ngoại lệ

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Ví dụ nào sau đây là một ngoại lệ không được kiểm tra?

ClassNotFoundException

ArithmeticException

SQLException

IOException

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?