A44 OOP Exception Handling

A44 OOP Exception Handling

Professional Development

7 Qs

quiz-placeholder

Similar activities

Streams

Streams

Professional Development

10 Qs

JAVA MS3

JAVA MS3

Professional Development

10 Qs

PreTrainingExceptions

PreTrainingExceptions

Professional Development

10 Qs

Python Session 5

Python Session 5

Professional Development

10 Qs

PBO

PBO

Professional Development

10 Qs

java

java

Professional Development

10 Qs

C# Quiz 3

C# Quiz 3

University - Professional Development

10 Qs

Day 22 - C10p1

Day 22 - C10p1

Professional Development

7 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)

RuntimeException

Exception

ArithmeticException

Object

Throwable

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 ignore/swallow exceptions

rethrow in catch block

Don't log and

leave empty catch block

Don't catch Throwable

specific exception first

Catch the most

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

Don't use exceptions