Exceptions and I/O

Exceptions and I/O

University

10 Qs

quiz-placeholder

Similar activities

Kuiz Anti Rokok dan Dadah 1

Kuiz Anti Rokok dan Dadah 1

7th Grade - University

15 Qs

Adobe Animate

Adobe Animate

1st Grade - Professional Development

10 Qs

Kuiz Bab 5 DAC21903

Kuiz Bab 5 DAC21903

University

10 Qs

Leaders of The World

Leaders of The World

KG - University

10 Qs

KALIMAT EFEKTIF

KALIMAT EFEKTIF

University

10 Qs

Core Ability L2.M1

Core Ability L2.M1

University - Professional Development

10 Qs

Games OTC 1

Games OTC 1

University

15 Qs

TES AWAL MODUL 2 TIPE A DAN C

TES AWAL MODUL 2 TIPE A DAN C

University

12 Qs

Exceptions and I/O

Exceptions and I/O

Assessment

Quiz

Other

University

Medium

Created by

Dr. Rahadianti

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apakah exception ini benar?
 IOException extends RuntimeExceptionIOException\ extends\ RuntimeException  

Salah 

Benar

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Custom exception dapat didefinisikan extends Exception

Benar

Salah

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Manakah yang bukan merupakan manfaat dari Exception?

Notifikasi error dari sebuah method yang dipanggil (callee) akan dikembalikan ke method yang memanggil (caller).

Program menjadi lebih cepat komputasinya.

Program lebih rapi karena memisahkan code untuk mendeteksi error dan yang meng-handle error.

Seandainya terjadi error, prorgram dapay berhenti secara elegan.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Exception yang harus dihandle oleh programmer agar program Java dapat dicompile adalah

Unchecked exception

Checked exception

Unchecked exception dan Checked exception

Bukan keduanya

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sebisa mungkin kita sebaiknya memanfaatkan Exception class Java. Namun mungkin terkadang kita perlu menggunakan custom Exception. Apa keunggulan custom Exception yang tidak dimiiliki Exception bawaan Java?

Kita dapat mengirimkan informasi error yang terjadi pada method yang dipanggil ke method yang memanggil

Kita dapat mengirimkan informasi detail tentang error yang terjadi untuk kepentingan user

Kita dapat menambahkan attribut tambahan yang dibutuhkan sebagai informasi tambahan untuk user.

Kita dapat menghemat waktu dan resource komputasi

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Class File dapat digunakan untuk..

Merepresentasikan file

Menulis file saja

Membaca file saja

Menulis dan membaca file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Manakah di antara method di bawah ini yang tidak mengandalkan delimiter untuk membaca input dari class Scanner?

next()

nextInt()

nextDouble()

nextLine()

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

Already have an account?