
Quiz sulle Eccezioni in Java

Quiz
•
Computers
•
12th Grade
•
Hard
Samuele Tascone
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale tipo di errore si verifica quando si tenta di accedere a un oggetto nullo durante l'esecuzione di un programma?
Eccezione di runtime
Errore di compilazione
Errore di sintassi
Errore logico
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa rappresenta il blocco 'try' in una struttura try/catch/finally?
Codice eseguito sempre
Codice a rischio
Gestione dell'eccezione
Codice di chiusura
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale delle seguenti affermazioni è vera riguardo al blocco 'finally'?
Viene eseguito solo se ci sono errori
Viene eseguito sempre
Viene eseguito solo se non ci sono errori
Non è necessario
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale tipo di eccezione obbliga a usare try/catch o throws?
Eccezioni controllate
Eccezioni non controllate
Eccezioni di compilazione
Eccezioni di runtime
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa fa l'istruzione 'throw' in Java?
Lancia manualmente un'eccezione
Gestisce un'eccezione
Dichiara un'eccezione
Crea un'eccezione personalizzata
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale delle seguenti è una buona pratica nella gestione delle eccezioni?
Usare catch generici
Fornire messaggi chiari
Evitare eccezioni personalizzate
Ignorare le eccezioni
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa deve fare un metodo che può lanciare un'eccezione controllata?
Lanciare un'eccezione non controllata
Dichiarare 'throws'
Gestire l'eccezione internamente
Non fare nulla
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Controllo di Flusso in C++

Quiz
•
9th - 12th Grade
10 questions
reti&servizi

Quiz
•
8th - 12th Grade
20 questions
Il processore 8086

Quiz
•
11th - 12th Grade
19 questions
Java Base

Quiz
•
9th - 12th Grade
10 questions
Linguaggio C - Basi

Quiz
•
11th - 12th Grade
14 questions
Funzioni Python

Quiz
•
12th Grade
20 questions
Nozioni fondamentali dell'Informatica

Quiz
•
8th Grade - University
10 questions
C# Massi

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade