Search Header Logo

IF433-w11

Authored by Alexander Waworuntu

Computers

University

Used 1+ times

IF433-w11
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Apa yang terjadi jika blok try mengalami exception?

Kode di blok try selanjutnya tetap dijalankan

Kode di blok catch dijalankan

Kode di blok finally diabaikan

Program berhenti

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Class Exception dalam Java berfungsi sebagai apa?

Interface untuk semua error

Base class untuk checked exceptions saja

Base class untuk semua exceptions

Class spesifik untuk runtime errors

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Kapan sebuah Checked Exception harus dihandle dalam Java?

Saat runtime

Sebelum compilation

Saat compilation

Tidak perlu dihandle

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Mana yang merupakan contoh dari Unchecked Exception?

FileNotFoundException

IOException

SQLException

NullPointerException

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Apa perbedaan utama antara error dan exception dalam Java?

Error tidak bisa dihandle, sedangkan exception bisa

Error dan exception sama-sama bisa dihandle

Error adalah subclass dari exception

Tidak ada perbedaan

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Dalam konteks exception handling, apa fungsi dari blok finally?

Menangani exceptions yang tidak di-catch

Selalu dijalankan setelah blok try dan catch, terlepas dari adanya exception

Hanya dijalankan jika tidak ada exceptions

Menginisialisasi variabel yang digunakan dalam try

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Apa itu Multiple Catch dalam Java?

Menangani lebih dari satu exception dengan satu catch

Berbagai blok catch untuk menangani berbagai jenis exceptions

Menggabungkan semua exceptions dalam satu blok

Menangani semua exceptions tanpa try

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?