Full Stack Quiz 16

Full Stack Quiz 16

1st Grade

20 Qs

quiz-placeholder

Similar activities

full stack quiz 15

full stack quiz 15

1st Grade

20 Qs

Java Script Certification Functions, Debugging & Loops

Java Script Certification Functions, Debugging & Loops

1st - 3rd Grade

20 Qs

Backend Trivia

Backend Trivia

1st Grade

19 Qs

Java - Quiz 3

Java - Quiz 3

1st - 3rd Grade

24 Qs

Web tehnologije

Web tehnologije

1st Grade

19 Qs

Theory Quiz (DPV10253) - Chapter 3

Theory Quiz (DPV10253) - Chapter 3

1st Grade

20 Qs

ATIVIDADE DE JAVA

ATIVIDADE DE JAVA

1st - 3rd Grade

20 Qs

minecraft

minecraft

KG - Professional Development

24 Qs

Full Stack Quiz 16

Full Stack Quiz 16

Assessment

Quiz

Professional Development, Physical Ed

1st Grade

Medium

Created by

Gnaneshwar Reddy

Used 13+ times

FREE Resource

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

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?