
Wipro Training Exception Handling and JDBC

Quiz
•
Engineering
•
University
•
Hard
Ms.Yatri Davda
Used 2+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which class is the superclass of all exceptions?
Error
Throwable
Exception
RuntimeException
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used to handle exceptions?
try
catch
finally
All of the above
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output?
try {
int a = 10 / 0;
} catch (ArithmeticException e) {
System.out.println("Divide by zero");
}
Compile-time error
Runtime error
Divide by zero
No output
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can we catch multiple exceptions in a single catch block in Java 7+?
Yes
No
Only with checked exceptions
Only with RuntimeException
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which is a checked exception?
ArithmeticException
NullPointerException
IOException
ArrayIndexOutOfBoundsException
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of finally block?
Handles exceptions
Executes only on error
Executes always
Optional block
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which block executes regardless of exception?
try
catch
throw
finally
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
DBMS Quiz2

Quiz
•
University
50 questions
DSA QUIZ

Quiz
•
University
53 questions
UTS Elektronika Digital

Quiz
•
University
50 questions
C Programming Quiz

Quiz
•
University
50 questions
B19MEO701 -3D PRINTING AND TOOLING

Quiz
•
University
47 questions
C Programming Quiz

Quiz
•
University
50 questions
02. [10-16-2024] Quiz in ME 433 - Part 3

Quiz
•
University
50 questions
Java Programming Basics Assessment

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade