
java-ExceptionHandling-vlits

Quiz
•
Computers
•
1st Grade
•
Hard
kolla vivek
Used 21+ times
FREE Resource
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
Similar Resources on Wayground
32 questions
Statistical data vs non-statistical data

Quiz
•
1st Grade
40 questions
java

Quiz
•
1st - 3rd Grade
40 questions
informatyka

Quiz
•
1st - 5th Grade
33 questions
Tema37-01/2023-1/3 t1

Quiz
•
1st Grade
40 questions
checkpoint 1-40

Quiz
•
1st Grade
33 questions
Arduino(Integrador para 1er año)

Quiz
•
1st Grade
38 questions
Javascript teszt

Quiz
•
1st - 3rd Grade
40 questions
Test Placa Bases, Memorias y HD

Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade