Java Exeptions

Java Exeptions

10th Grade

10 Qs

quiz-placeholder

Similar activities

Mod 4 quiz

Mod 4 quiz

9th - 12th Grade

12 Qs

CodeHS Python Unit 6 Quiz Review

CodeHS Python Unit 6 Quiz Review

9th - 12th Grade

15 Qs

AP CSA Arrays

AP CSA Arrays

10th - 12th Grade

14 Qs

Pemrograman berorientasi objek

Pemrograman berorientasi objek

1st - 10th Grade

13 Qs

Python Exception Handling

Python Exception Handling

10th - 12th Grade

10 Qs

String Methods

String Methods

9th - 12th Grade

10 Qs

SKT4-1.2.3: MENGUJI DAN MEMBAIKI RALAT DALAM ALGORITMA

SKT4-1.2.3: MENGUJI DAN MEMBAIKI RALAT DALAM ALGORITMA

10th - 11th Grade

10 Qs

Do you know some Java basics?

Do you know some Java basics?

9th - 12th Grade

14 Qs

Java Exeptions

Java Exeptions

Assessment

Quiz

Computers

10th Grade

Hard

Created by

STEFANO MURTAS

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quale di queste eccezioni è sollevata quando si tenta di convertire una stringa in un numero ma la stringa non è un numero valido?
NumberFormatException
FileNotFoundException
ClassCastException
ArithmeticException

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual è l'eccezione sollevata quando il programma cerca di accedere a un indice di un array che non esiste?
ArrayIndexOutOfBoundsException
IllegalArgumentException
IOException
NullPointerException

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quale eccezione viene sollevata quando un programma tenta di aprire un file che non esiste?
FileNotFoundException
NullPointerException
NumberFormatException
IOException

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quale eccezione viene sollevata quando si tenta di eseguire un'operazione illegale su un oggetto?
IllegalArgumentException
ArithmeticException
UnsupportedOperationException
ClassCastException

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quale eccezione si verifica quando si tenta di eseguire un'operazione aritmetica non valida, come la divisione per zero?
ArithmeticException
ClassNotFoundException
IndexOutOfBoundsException
NumberFormatException

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quale eccezione indica che un array è stato creato con una dimensione negativa?
NegativeArraySizeException
ArrayIndexOutOfBoundsException
OutOfMemoryError
NullPointerException

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quale eccezione indicata dai programmatori si verifica quando un valore di tipo non è compatibile con un'altra entità durante il cast?
ClassCastException
NumberFormatException
NullPointerException
IOException

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?