A44 OOP Exception Handling

A44 OOP Exception Handling

Professional Development

7 Qs

quiz-placeholder

Similar activities

Data Validation

Data Validation

KG - Professional Development

11 Qs

COMPUTER CONCEPTS

COMPUTER CONCEPTS

Professional Development

10 Qs

Python Test 1

Python Test 1

Professional Development

10 Qs

StreamQuiz

StreamQuiz

Professional Development

12 Qs

PreTrainingWeek3Content

PreTrainingWeek3Content

Professional Development

11 Qs

Python Session 5

Python Session 5

Professional Development

10 Qs

PYTHON QUIZ3

PYTHON QUIZ3

University - Professional Development

10 Qs

Intro to Node.js

Intro to Node.js

Professional Development

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

Object

Throwable

Exception

RuntimeException

ArithmeticException

4.

MATCH QUESTION

1 min • 3 pts

Match the following

Checked Exception

Irrecoverable

Unchecked

Exception

Runtime exceptions

Error

Compile-time 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

specific exception first

Don't log and

rethrow in catch block

Don't catch Throwable

when if-else can be used

Don't use exceptions

leave empty catch block

Catch the most

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

Don't ignore/swallow exceptions