Which of these keywords are used for the block to be examined for exceptions?

Full Stack Quiz 16

Quiz
•
Professional Development, Physical Ed
•
1st Grade
•
Medium

Gnaneshwar Reddy
Used 13+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
try
catch
throw
check
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of these keywords are used for generating an exception manually?
try
catch
throw
check
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of these statements is incorrect?
try block need not to be followed by catch block
try block can be followed by finally block instead of catch block
try can be followed by both catch and finally block
try need not to be followed by anything
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
1. What is the use of try & catch?
It allows us to manually handle the exception
It allows to fix errors
It prevents automatic terminating of the program in cases when an exception occurs
All of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
try
{
int a = 0;
int b = 5;
int c = b / a;
System.out.print("Hello");
}
}
}
Hello
World
HelloWOrld
Compilation Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of these keywords are used for the block to handle the exceptions generated by try block?
try
catch
throw
check
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Where should you keep your Java code that helps to take action on the exceptions raised inside TRY block?
One more TRY block
CATCH block
FINALLY block
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Pressure

Quiz
•
1st Grade
15 questions
Add funds Team QUEUEBUSTERS

Quiz
•
KG - Professional Dev...
20 questions
Full Stack through java Quiz 18

Quiz
•
1st Grade
15 questions
Chair ball p4

Quiz
•
1st - 12th Grade
20 questions
Theory Quiz (DPV10253) - Chapter 3

Quiz
•
1st Grade
15 questions
BOLA BESAR

Quiz
•
1st - 3rd Grade
15 questions
Android Studio 2

Quiz
•
1st Grade - Professio...
20 questions
Gym Behavior Quiz for Students

Quiz
•
1st Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade