java-ExceptionHandling-vlits

java-ExceptionHandling-vlits

1st Grade

37 Qs

quiz-placeholder

Similar activities

Воспоминания

Воспоминания

1st - 12th Grade

37 Qs

PAS DASAR-DASAR DESAIN GRAFIS

PAS DASAR-DASAR DESAIN GRAFIS

KG - 10th Grade

35 Qs

2.1 - Algorithms OCR

2.1 - Algorithms OCR

KG - University

34 Qs

Smart city, home

Smart city, home

1st Grade

37 Qs

Pemrograman Dasar Kelas X

Pemrograman Dasar Kelas X

1st Grade

40 Qs

UAS BDL Kelas A

UAS BDL Kelas A

1st Grade

40 Qs

Ubuntu - Linux

Ubuntu - Linux

1st Grade

33 Qs

Coronation Quiz 01/11/2023

Coronation Quiz 01/11/2023

1st - 5th Grade

34 Qs

java-ExceptionHandling-vlits

java-ExceptionHandling-vlits

Assessment

Quiz

Computers

1st Grade

Practice Problem

Hard

Created by

kolla vivek

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

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

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When does Exceptions in Java arises in code sequence?

Run Time

Compilation Time

Can Occur Any Time

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these keywords is not a part of exception handling?

try

finally

thrown

catch

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these keywords must be used to monitor for exceptions?

try

finally

throw

catch

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these keywords must be used to handle the exception thrown by try block in some rational manner?

try

finally

throw

catch

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these keywords is used to manually throw an exception?

try

finally

throw

catch

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the output of the program?

class exception_handling{

public static void main(String args[]){

try{

System.out.print("Hello" + " " + 1 / 0);

}

catch(ArithmeticException e){ System.out.print("World");

}

}

}

Hello

World

HelloWorld

Hello World

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the output of the following program?

class exception_handling{

public static void main(String args[]){

try{

int a, b;

b = 0;

a = 5 / b;

System.out.print("A");

}

catch(ArithmeticException e){

System.out.print("B");

}

}

}

A

B

Compilation Error

Run Time Error

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?