Search Header Logo

Full Stack Quiz 16

Authored by Gnaneshwar Reddy

Professional Development, Physical Ed

1st Grade

Used 13+ times

Full Stack Quiz 16
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these keywords are used for the block to be examined for exceptions?

try

catch

throw

check

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these keywords are used for generating an exception manually?

try

catch

throw

check

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these statements is incorrect?

try block need not to be followed by catch block

try block can be followed by finally block instead of catch block

try can be followed by both catch and finally block

try need not to be followed by anything

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

1. What is the use of try & catch?

It allows us to manually handle the exception

It allows to fix errors

It prevents automatic terminating of the program in cases when an exception occurs

All of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of the following Java code?

class Output

{

public static void main(String args[])

{

try

{

int a = 0;

int b = 5;

int c = b / a;

System.out.print("Hello");

}

}

}

Hello

World

HelloWOrld

Compilation Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these keywords are used for the block to handle the exceptions generated by try block?

try

catch

throw

check

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Where should you keep your Java code that helps to take action on the exceptions raised inside TRY block?

One more TRY block

CATCH block

FINALLY block

None of the above

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?