Tut11 - Exceptions

Quiz
•
Computers
•
University
•
Hard
Loris Galler
Used 1+ times
FREE Resource
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.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Welches Schlüsselwort wird verwendet, um eine benutzerdefinierte Exception in Java zu erstellen?
extends Exception
implements Exception
throws Exception
catch Exception
Similar Resources on Wayground
11 questions
Software Engineering 2021

Quiz
•
University
10 questions
Datentypen, Variablen & Eingabe in Python

Quiz
•
University
8 questions
Raid

Quiz
•
10th Grade - Professi...
7 questions
Webtech Tutorium 11 - TCP/IP

Quiz
•
University
12 questions
Se Quiz 1

Quiz
•
University
7 questions
Minecraft 1.16.0

Quiz
•
KG - Professional Dev...
9 questions
Tut12

Quiz
•
University
10 questions
Scratch Pen Quiz

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University