
OOPs UNIT 2 & 3
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
prabavadhi undefined
Used 1+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is an exception in Java?
A compile-time error
A runtime error
An error that cannot be handled
An object representing an error condition
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which block is always executed after a try block, regardless of whether an exception occurred or not?
finally
catch
throw
throws
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can a single try block have multiple catch clauses?
Yes
No
Only two
Only three
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What happens if an exception is not caught in a program?
The program runs normally
The program terminates abnormally
The exception is ignored
The exception is logged but the program continues
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is NOT a built-in exception in Java?
ArrayIndexOutOfBoundsException
IOException
FileNotFoundException
MemoryLimitExceededException
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used to manually throw an exception in Java?
throw
throws
exception
error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used to declare that a method may throw exceptions?
throw
throws
catch
finally
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
25 questions
UNIT - 2 A Understanding Parsers in Compilers
Quiz
•
University
25 questions
CIVIL ENGINEERING MAINTENANCE
Quiz
•
University
25 questions
New Zealand :>
Quiz
•
KG - Professional Dev...
25 questions
Responsible Tourism
Quiz
•
University
25 questions
Unit - 2
Quiz
•
University
25 questions
ACE 26/04/20 HRA
Quiz
•
University
25 questions
GED101 FINAL QUIZ
Quiz
•
University
25 questions
Bánh mì Talk - 15/02/2025
Quiz
•
1st Grade - University
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 Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
