JPRG Topic 2-4: Exception Handling

Quiz
•
Computers
•
University
•
Medium

Alvin Tang
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many catch blocks can a try block have?
Only one catch block to each try block.
As many different types of exceptions there can be.
Two.
None.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is the finally-block executed in exception handling code?
Always.
Never.
Almost always.
Almost never.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Java's exception handling mechanism handles _ errors.
Syntax
Runtime
Logical
Computational
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT an example that you can use finally-blocks for?
Close files
Close databases
Reverse time
Revert user changes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Running 8/0 in Java will yield _
java.lang.ArithmeticException
java.lang.NumberFormatException
No errors/exceptions
java.lang.ArrayIndexOutOfBounds
Similar Resources on Wayground
10 questions
Introduction to Java

Quiz
•
University
10 questions
JSTL Quiz

Quiz
•
University
10 questions
Programacion Orientada a Objetos

Quiz
•
12th Grade - University
10 questions
Java Quiz 1

Quiz
•
University
5 questions
Basic Input and Output in Java

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
10 questions
GDSC Android Bootcamp [Kotlin Quiz]

Quiz
•
University
10 questions
Topik 2: Ciri-ciri Object Oriented Programming (OOP)

Quiz
•
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