Java Exeptions

Java Exeptions

10th Grade

10 Qs

quiz-placeholder

Similar activities

Unit 6 Computer Science Arrays

Unit 6 Computer Science Arrays

10th - 12th Grade

14 Qs

Java Features Quiz

Java Features Quiz

10th Grade

10 Qs

Komputer

Komputer

1st Grade - University

11 Qs

ICT : Chapter 6 - Information System

ICT : Chapter 6 - Information System

10th - 11th Grade

11 Qs

JAVA QUIZ

JAVA QUIZ

1st - 12th Grade

11 Qs

Python: Chapter 6 - True or False

Python: Chapter 6 - True or False

8th Grade - University

9 Qs

AP CSA Array List

AP CSA Array List

10th - 12th Grade

5 Qs

Java Exceptions

Java Exceptions

10th Grade

10 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?