
Tut11 - Exceptions
Authored by Loris Galler
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wann tritt eine NullPointerException auf?
Wenn eine Division durch Null erfolgt.
Wenn auf ein Objekt zugegriffen wird, dessen Referenz null ist.
Wenn ein erforderliches Systemressource fehlt.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was ist der Zweck des finally-Blocks in einem try-catch-Statement?
Um eine weitere Exception zu werfen.
Um die aufgetretene Exception zu deklarieren.
Um eine spezifische Art von Exception zu fangen.
Um Code auszuführen, der immer laufen soll, unabhängig davon, ob eine Exception auftritt oder nicht.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was wird durch das throw-Keyword in Java erreicht?
Es unterdrückt eine Exception.
Es wird verwendet, um eine Exception zu deklarieren.
Es wird verwendet, um eine spezifische Exception explizit zu werfen.
Es prüft, ob eine Exception auftritt.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Welche der folgenden Aussagen ist wahr über den catch-Block?
Ein catch-Block muss immer auf einen try-Block folgen.
Ein catch-Block kann ohne einen try-Block existieren.
Ein catch-Block wird ausgeführt, bevor der try-Block Code ausführt.
Ein try-Block kann ohne einen catch
-Block existieren.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Welche Art von Exception ist eine ArithmeticException in Java?
Checked Exception
Unchecked Exception
Error
Beides, Checked und Unchecked Exception
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Man kann auch eigene Exception Klassen erstellen
Wahr
Falsch
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wie viele catch-Blöcke können einem try-Block folgen?
Genau einer.
Höchstens zwei.
So viele wie nötig.
Keiner, wenn ein finally-Block vorhanden ist.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
OS - Assessment 06
Quiz
•
University
10 questions
java script
Quiz
•
University
10 questions
Scratch Pen Quiz
Quiz
•
KG - University
12 questions
BJC Unit 2 Concepts Review
Quiz
•
10th Grade - University
10 questions
Basic python
Quiz
•
University
8 questions
DES- Encryption
Quiz
•
University
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
12 questions
Neural Networks Basic with Python
Quiz
•
University - Professi...
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University