
java-ExceptionHandling-vlits
Authored by kolla vivek
Computers
1st Grade
Used 21+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
40 questions
Introduction to Programming
Quiz
•
1st Grade
35 questions
Comprehensive Exam for Networking 2
Quiz
•
KG - University
41 questions
Jaringan Komputer
Quiz
•
1st Grade
40 questions
SIMULASI UNBK 2020 part 1
Quiz
•
1st Grade
40 questions
UTS 4D
Quiz
•
1st Grade
34 questions
TechTrain 2022 Autumn
Quiz
•
1st - 3rd Grade
40 questions
Sesión 3 - Repaso
Quiz
•
1st - 10th Grade
32 questions
HARDEST MINECRAFT QUIZ
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade