
java-ExceptionHandling-vlits
Quiz
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
kolla vivek
Used 21+ times
FREE Resource
Enhance your content in a minute
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When does Exceptions in Java arises in code sequence?
Run Time
Compilation Time
Can Occur Any Time
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these keywords is not a part of exception handling?
try
finally
thrown
catch
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these keywords must be used to monitor for exceptions?
try
finally
throw
catch
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these keywords must be used to handle the exception thrown by try block in some rational manner?
try
finally
throw
catch
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these keywords is used to manually throw an exception?
try
finally
throw
catch
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output of the program?
class exception_handling{
public static void main(String args[]){
try{
System.out.print("Hello" + " " + 1 / 0);
}
catch(ArithmeticException e){ System.out.print("World");
}
}
}
Hello
World
HelloWorld
Hello World
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output of the following program?
class exception_handling{
public static void main(String args[]){
try{
int a, b;
b = 0;
a = 5 / b;
System.out.print("A");
}
catch(ArithmeticException e){
System.out.print("B");
}
}
}
A
B
Compilation Error
Run Time Error
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
34 questions
ICT code club Assessment
Quiz
•
KG - 3rd Grade
40 questions
Evaluación Final de Planilla Electrónica
Quiz
•
1st Grade - Professio...
35 questions
1HCOM
Quiz
•
1st Grade
34 questions
Code.org Course a - c revision
Quiz
•
1st - 5th Grade
40 questions
Algorithm for grade 1
Quiz
•
1st Grade
40 questions
CAS Defect Fixing y Mejora Continua
Quiz
•
1st - 3rd Grade
40 questions
teknologi layanan jaringan
Quiz
•
1st - 3rd Grade
41 questions
Latihan TKJ 2
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
14 questions
States of Matter
Lesson
•
KG - 3rd Grade
13 questions
Veterans' Day
Quiz
•
1st - 3rd Grade
20 questions
Multiplication Mastery Checkpoint
Quiz
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
16 questions
natural resources
Quiz
•
1st Grade
20 questions
Identify Coins and Coin Value
Quiz
•
1st Grade
24 questions
Addition
Quiz
•
1st Grade
