Day 6 - Exception Handling

Day 6 - Exception Handling

University

50 Qs

quiz-placeholder

Similar activities

Java-Lab-Viva-Quiz-Batch11

Java-Lab-Viva-Quiz-Batch11

University

51 Qs

Python PCAP 31-03

Python PCAP 31-03

University

50 Qs

Java Assessment-1

Java Assessment-1

University

50 Qs

Ass3

Ass3

University - Professional Development

50 Qs

AKT test (251-300)   Жаңа вариант

AKT test (251-300) Жаңа вариант

University

50 Qs

codinggss

codinggss

University

50 Qs

VB.NET BASIC QUIZ

VB.NET BASIC QUIZ

University

50 Qs

OOPs Model Exam

OOPs Model Exam

University

50 Qs

Day 6 - Exception Handling

Day 6 - Exception Handling

Assessment

Quiz

Computers

University

Medium

Created by

Prof. Karale

Used 2+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an exception in Java?
An error in the code
A runtime error
A logical error
A compile-time error

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a checked exception?
NullPointerException
ArrayIndexOutOfBoundsException
IOException
ArithmeticException

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to handle exceptions?
catch

try

both try & catch

throws

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which block is always executed?
try
catch
finally
throw

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to throw an exception manually?
throws
throw
final
try

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these is a superclass of all exceptions?
Throwable
Error
Exception
RuntimeException

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the use of throws keyword?
To throw multiple exceptions
To declare exceptions
To catch exceptions
To ignore exceptions

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?