A44 OOP Exception Handling

A44 OOP Exception Handling

Professional Development

7 Qs

quiz-placeholder

Similar activities

Exercise No 1-Intro to Java

Exercise No 1-Intro to Java

Professional Development

10 Qs

hhah

hhah

2nd Grade - Professional Development

7 Qs

C++ File and Exception Handling Test

C++ File and Exception Handling Test

Professional Development

11 Qs

javascript3

javascript3

Professional Development

8 Qs

M5 - Mulesoft Deploying apis

M5 - Mulesoft Deploying apis

Professional Development

5 Qs

PYTHON VOCABULARY

PYTHON VOCABULARY

Professional Development

10 Qs

LAMBDA Functions

LAMBDA Functions

10th Grade - Professional Development

7 Qs

93.Final keyword

93.Final keyword

Professional Development

11 Qs

A44 OOP Exception Handling

A44 OOP Exception Handling

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Chavdar Dimitrov

Used 11+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 3 pts

The checked Exceptions should inherit from the following classes:

Throwable

RuntimeException

Object

Exception

2.

MULTIPLE SELECT QUESTION

30 sec • 3 pts

The unchecked Exceptions should inherit from the following classes:

Throwable

RuntimeException

Object

Exception

3.

REORDER QUESTION

1 min • 3 pts

What is correct hierarchal order of the following classes?

(Start from the most general to the most specific)

Exception

RuntimeException

Object

Throwable

ArithmeticException

4.

MATCH QUESTION

1 min • 3 pts

Match the following

Unchecked

Exception

Irrecoverable

Error

Compile-time exceptions

Checked Exception

Runtime exceptions

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

If the input is valid int number what will be printed?

Enter a number to divide:

Enter a number to divide:

User input done.

Enter a number to divide:

Invalid user input ! Integer number is expected.

User input done.

Nothing will be printed

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

What is the result of the program?

Compilation error

Invalid user input ! Dividing by 0 is not allowed.

I'm first!

No I'm first!

7.

MATCH QUESTION

1 min • 3 pts

Match the following

when if-else can be used

Don't use exceptions

It will not only catch all exceptions, it will also catch all errors

Don't log and

specific exception first

Don't catch Throwable

rethrow in catch block

Don't ignore/swallow exceptions

leave empty catch block

Catch the most