Java_ExceptionHandling

Java_ExceptionHandling

Professional Development

13 Qs

quiz-placeholder

Similar activities

Indicadores de Gestión

Indicadores de Gestión

Professional Development

10 Qs

Python

Python

Professional Development

10 Qs

Training Advanced Anti Fraud

Training Advanced Anti Fraud

Professional Development

10 Qs

Kick Off 2022

Kick Off 2022

Professional Development

15 Qs

Design Thinking - Quiz

Design Thinking - Quiz

Professional Development

15 Qs

TECHNICIAN L2 - ENGINE

TECHNICIAN L2 - ENGINE

Professional Development

12 Qs

OBDF Quiz

OBDF Quiz

Professional Development

11 Qs

PSM-I Pre-Quiz

PSM-I Pre-Quiz

Professional Development

15 Qs

Java_ExceptionHandling

Java_ExceptionHandling

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

kowshika arumugham

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the advantage of Exception Handling

To avoid abnormal termination of a program

To find out errors

To Debug program

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following key word is optional in Exception handling program

try

finally

catch

throw

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of 'throw' keyword

To Raise an exception explicitly

To Raise an exception implicitly

To create user defined exceptions

To create custom exceptions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Exception classes belongs to following package

import java.io.*

import java.lang.*

import java.util.*

import java.lang.Exception.*

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default behavior of an uncaught exception in Java

Program terminates abruptly

Exception is ignored

Program continues execution

Exception is logged

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose an exception if attempt to divide number by zero

int number = 89 / 0;

System.out.println("The answer is " + number);

ArithmeticException

NullPointerException

NumberFormatException

ArrayIndexOutOfBoundException

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the CORRECT exception

String department="JTMK";

Integer no=Integer.parseInt(department);

ArithmeticException

NullPointerException

NumberFormatException

ArrayIndexOutOfBoundException

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development